From 2bd95cbcd1ef41e964f0244fd3d224893d0c0f24 Mon Sep 17 00:00:00 2001 From: anthologen Date: Sun, 31 Jan 2021 21:53:35 -0500 Subject: [PATCH] escape key to quit built game --- GGJ/Assets/Scripts/InputManager.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/GGJ/Assets/Scripts/InputManager.cs b/GGJ/Assets/Scripts/InputManager.cs index 09604e51..39f21fbb 100644 --- a/GGJ/Assets/Scripts/InputManager.cs +++ b/GGJ/Assets/Scripts/InputManager.cs @@ -34,6 +34,10 @@ void Update() SetActiveAbility(Ability.Jump, Input.GetButtonDown("Jump")); SetActiveAbility(Ability.Left, Input.GetButton("Left")); SetActiveAbility(Ability.Right, Input.GetButton("Right")); + if (Input.GetKey("escape")) + { + Application.Quit(); + } } public bool[] getAllAbilitiesAvail(){