I can't seem to figure out this issue.
In Unity, my game plays perfectly. No spawning issues.
But when I load the game through XCode onto my iPhone the game spawns too many objects.
For example, I spawn between 2 and 6 objects which drop one after the other. Its randomized so 2 through 6 objects will spawn then after 5 seconds another 2-6 objects will spawn.
But on the iPhone, when the game starts, the objects will spawn a random amount at once. Then the game will spawn 2-6 objects regularly every 5 seconds like it should.
An even bigger issue is that after I end the game and go back to the main menu then go back into the game again. The game will spawn the same amount of objects that were on the screen when the game ended.
I'm pretty lost and frustrated. It seems something is changing when I build the game for the iPhone. Again, it works perfectly in Unity.
Any help would be greatly appreciated.
↧