Answers for "unity how to end a game with esc"

C#
1

unity how to end a game with esc

void Update()
{
    if (Input.GetKey(KeyCode.Escape))
    {
        Application.Quit();
    }
}
Posted by: Guest on January-17-2020

Code answers related to "unity how to end a game with esc"

C# Answers by Framework

Browse Popular Code Answers by Language