How do you guys organize your game structure?
I am new to Unity but experienced in programming. I would do the following:
- For each game object have a class to manage it’s data.
- In an RTS game for example, each time you instantiate a unit create a new class for it and to that class pass the newly instantiated game object.
So basically you have GameObject+Class pairs for all units, correct?
GameObject is the “what you see” and the Class contains the logic for that entity.