- Home /
quiting the game when triggered
I need some help guys! i'm trying to make a game for a project at school, but i want that when a switch is turned the game get's shutdowned.
how do i do this?
Comment
Answer by Loius · Oct 17, 2012 at 04:41 PM
Application.Quit
(Don't forget, once you find an answer which solves your problem, to click on the "check mark" icon to mark the question as answered - this will drop it off of some searches. Welcome to Answers!)
Your answer
![](https://koobas.hobune.stream/wayback/20220613082504im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Quit button 1 Answer
End/Pause Game! 2 Answers
Time limit on my game with selection menu 0 Answers
Make a button quit the game, Unity 4.6 UI C# 1 Answer
How do i stop OnBecameInvisible being used when I exit game? 1 Answer