I am familiar with the basic concepts of OOP and do not understand where a “script” fits into this system.
I am trying to create an inventory system.
I was thinking of creating a class for all items, then subclass for weapons, that have GameObjects for attributes - the physical ingame objects, if I had to display them.
How would I implement such a thing? I am supposed to attach scripts TO GameObjects?!
I am really confused right now …
How would I instantiate the Item class? Do I need them to be GameObjects with transforms?? Does my question even make any sense?? WHAT IS GOING ON??