Scrolling though objects then creating a new instace of this object
- by gopgop
In my game when pressing the right mouse button you will place an object on the ground. all objects have the same super class (GameObject).
I have a field called selected and will be equal to one certain gameobject at a time.
when clicking the right mouse button it checks whats the instance of selected and that how it determines which object to…