From a833bdf0a182b8a7e98d4292691c4a4d9d110bdf Mon Sep 17 00:00:00 2001 From: allylikesfrogs Date: Wed, 3 May 2023 10:11:00 -0700 Subject: [PATCH] clarinet check --- Assets/Scripts/PlayerBehavior.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) {