Question is off-topic or not relevant
End Game (Stop spawning) with OnTriggerEnter or OnCollisionEnter?
Hello! I am working on a color matching catch game where you need to match the color of the game object on the bottom with the color of the game object falling from the top of the screen. And what I am trying to achieve is as soon as you match the colors incorrectly, it's game over and objects from the top need to stop spawning.
I'm not sure if I need to create a new script for this or just add code into a current script I already have. I've got a game controller script that handles the scrolling of the "catch" objects at the bottom of the screen, as well as a spawning script, and a score script where I'm already calling an OnTriggerEnter2D to update my score. what would I need to code in a new "Game Over" script or add on to a current one to achieve this goal? Any advice or pointing me in the right direction is greatly appreciated, thank you!