Monday
Nov232009
Micropausing when destroying enemies
Monday, November 23, 2009 at 02:59PM There is a micropause when destroying skeleton warriors. I am betting this is due to all the Instantiates and GetComponents that are floating around at that point. There are also Resource.Load calls in there as well.
Solution is to preinstantiate everything. Store a set number of debris pieces in a manager along with references to all textures.
Well, first I need to figure out how to make a game with multiple enemies first eh?

Reader Comments