Created
December 11, 2023 04:41
-
-
Save deadasadodo/866132a0cce6a95996e3d35d7275a69c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ExampleClass : MonoBehaviour | |
{ | |
void Update() | |
{ | |
if (Input.GetKey("escape")) | |
{ | |
Application.Quit(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment