fix: Changed one last invocation to the new state controller system

This commit is contained in:
Nicholas Novak 2023-05-04 11:38:06 -07:00
parent 212695df5d
commit 4c7ab5fc8c
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ public class DebugSceneSwitcher : MonoBehaviour
public void ChangeScene(int index) public void ChangeScene(int index)
{ {
// print(index); // print(index);
this.gameObject.SetActive(false);
SceneController.Instance.LoadChosenScene(index); SceneController.Instance.LoadChosenScene(index);
this.gameObject.SetActive(false);
} }
} }

View File

@ -112,7 +112,7 @@ public class PlayerMovement : MonoBehaviour
private void Update() private void Update()
{ {
unlockedTrumpet = stateController.unlockedTrumpet; unlockedTrumpet = StateController.Instance.HasTrumpet();
#region TIMERS #region TIMERS
LastOnGroundTime -= Time.deltaTime; LastOnGroundTime -= Time.deltaTime;
LastOnWallTime -= Time.deltaTime; LastOnWallTime -= Time.deltaTime;