From 77793bdd9ace6b283fe14c97c26c004e2215f1f0 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 20 Apr 2020 22:53:59 +0200 Subject: [PATCH] Revert StartOnAnyKey edit --- Assets/Scripts/Core/StartOnAnyKey.cs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) 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"); } }