diff --git a/Assets/Scripts/PlayerBehavior.cs b/Assets/Scripts/PlayerBehavior.cs index 09deaa9..039a64a 100644 --- a/Assets/Scripts/PlayerBehavior.cs +++ b/Assets/Scripts/PlayerBehavior.cs @@ -96,7 +96,7 @@ public class PlayerBehavior : MonoBehaviour } unlockedClarinet = stateController.unlockedClarinet; - if(playerIsAlive) + if(playerIsAlive && unlockedClarinet) { if (playerInput.actions["ClarinetDive"].WasPressedThisFrame()) {