Object Pooling implementation ( reusing ) in Unity runner game
问题 I have my first runner game. Everything works fine. So, this question is about optimisation. In my game, There are 15 platforms(road prefabs on which player runs). Randomly out 15 any 1 is instantiated and this keeps happening. When player passes a few platforms, The left behind platforms gets destroyed. I made a list to keep track of platforms and delete them last platform prefab ( list[0]). And new ones are instantiated ahead. As the game approaches, It gets fast which means the operation