diff --git a/Assets/Scripts/Core/StartOnAnyKey.cs b/Assets/Scripts/Core/StartOnAnyKey.cs index 7e280a1..e6ed8bb 100644 --- a/Assets/Scripts/Core/StartOnAnyKey.cs +++ b/Assets/Scripts/Core/StartOnAnyKey.cs @@ -5,21 +5,9 @@ using UnityEngine.SceneManagement; public class StartOnAnyKey : MonoBehaviour { - public float activateAfter = 1.5f; - private bool active; - - void Start() { - active = false; - Invoke("Activate", activateAfter); - } - - void Activate() { - active = true; - } - void Update() { - if(Input.anyKeyDown && active) { + if(Input.anyKeyDown) { SceneManager.LoadScene("Default"); } }