Skip to content

Instantly share code, notes, and snippets.

@Ahmed-Radi
Created March 10, 2020 12:49
Show Gist options
  • Save Ahmed-Radi/7012586abda51be9565b3372f3e8b020 to your computer and use it in GitHub Desktop.
Save Ahmed-Radi/7012586abda51be9565b3372f3e8b020 to your computer and use it in GitHub Desktop.
If you want to stop the Panel if you are designing a game like Switch Colors
and you want to Stop the Panel and ball when you hit at
a different color from the ball color, you can use the function
put next line it in Game Over() function
Time.timeScale = 0
and next line Inside a Restart() function
Time.timeScale = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment