Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

Creating object and collections at runtime

$
0
0
Hey guys, I'm currently working on a game targeting android and ios platforms. I am quite familiar with object pooling and I make sure to instantiate any GameObjects I'm going to create in OnStart() and then cache/reuse them in the scene. Should I be concerned with newing regular C# objects at runtime as well? Is this something I should avoid doing? Currently in my game I might do something like this to create a set of badguys: var badGuys = new List(); for(int i=0; i

Viewing all articles
Browse latest Browse all 4709

Trending Articles



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