I have searched about good practices, but only found things like "comment your code" or "careful when naming your variables".
I would like to know things like:
- Don't use getComponenet( ) in functions that will be called several times.
- it is preferable to use Vector instead List because it is lighter.
And I have some doubts:
1. Use pool of Gameobjects instead of instantiating and destroying objects, is a good practice?
2. I must separate the responsibilities of the script?
For example a player script: movement **and** shooting system in the same scrpt **or** separated?
↧