/// <summary> /// Update is called every frame, if the MonoBehaviour is enabled. /// </summary> void Update() { if (!paused && !PlayerInstanciationScript.player.sleepState) { FetchOneTimeControls(); FetchControls(); } else if (!paused && PlayerInstanciationScript.player.sleepState) { if (KeyMapper.AnyKeyDown()) { PlayerInstanciationScript.player.WakeUp(); } } }