Quantcast
Channel: Questions in topic: "tips"
Viewing all articles
Browse latest Browse all 102

Optimization and Good habits programming whit C#

$
0
0
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?

Viewing all articles
Browse latest Browse all 102

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>