I think there is a main concept you are missing here.
For an endless running game, the trigger of spawning new object is hitting the trigger of every platform you are spawning. What i mean is that you have a main platform that you are spawning over and over, and that platform will have a trigger at the end that will be the trigger to spawn a new object. So when you hit that trigger you know that a new object must be spawned, and when you stop for the combat, you will not be spawning any object because this trigger is not hit.
1 Like