diff --git a/Assets/Scripts/DebugSceneSwitcher.cs b/Assets/Scripts/DebugSceneSwitcher.cs index e45ccf3..81a25af 100644 --- a/Assets/Scripts/DebugSceneSwitcher.cs +++ b/Assets/Scripts/DebugSceneSwitcher.cs @@ -32,7 +32,7 @@ public class DebugSceneSwitcher : MonoBehaviour public void ChangeScene(int index) { // print(index); - this.gameObject.SetActive(false); SceneController.Instance.LoadChosenScene(index); + this.gameObject.SetActive(false); } } diff --git a/Assets/Scripts/PlayerController.cs b/Assets/Scripts/PlayerController.cs index ee28915..73fc548 100644 --- a/Assets/Scripts/PlayerController.cs +++ b/Assets/Scripts/PlayerController.cs @@ -112,7 +112,7 @@ public class PlayerMovement : MonoBehaviour private void Update() { - unlockedTrumpet = stateController.unlockedTrumpet; + unlockedTrumpet = StateController.Instance.HasTrumpet(); #region TIMERS LastOnGroundTime -= Time.deltaTime; LastOnWallTime -= Time.deltaTime;