Stop Spawning: Game OVER
When game is over, it does not make sense to spawn any more objects in the scene. So using script communication again, we can tweak our SpawnManager script by allowing it to Instantiate asteroids only if the isGameOver bool is set to false.
Declare a variable to the class PlayerController
2. Find the GameObject "Player" that contains PlayerController script, and store it to the variable playerControllerScript in the Start() method.
3. Use Decision Statement to check if isGameOver == false or not before using Instantiate() method.