Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
C#
unity how to end a game with esc
user49384
Programming language:
C#
2021-04-16 12:13:20
1
Q:
unity how to end a game with esc
Ashamed Anaconda
Code:
C#
2021-03-22 20:38:21
void Update() { if (Input.GetKey(KeyCode.Escape)) { Application.Quit(); } }
1
Tags
unity
how
game
Related
get position of any gameobject in unity
how to make % posibility to spawn an object C# in unity
Unity how end a couroutine
exit button unity code
how to make a top down movement in unity 2020
how to reference the position of a game object unity
unity how to move a gameobject towards another gameobject
how to run code without a gameobject unity
unity how to make jump script
unity load next scene
exit game unity
New to Communities?
Join the community