This commit is contained in:
allylikesfrogs
2023-05-06 16:47:57 -07:00
parent 05d7a72699
commit c61a38ee9d
9 changed files with 264 additions and 68 deletions

View File

@@ -18,6 +18,7 @@ public class PlayerBehavior : MonoBehaviour
bool unlockedTambourine;
[Header("Clarinet:")]
[SerializeField] AudioSource clarinetAudio;
bool unlockedClarinet;
// things for dash
private bool isDash = false;
@@ -107,6 +108,7 @@ public class PlayerBehavior : MonoBehaviour
this.gameUI.ToggleClarinet(false);
playerInput.DeactivateInput();
currentDash = 0.0f;
clarinetAudio.Play();
}
if (!playerController.IsGrounded() && isDash && (currentDash < dashTime)) {