Implement sound effects

This commit is contained in:
RochesterX
2025-04-12 17:24:51 -04:00
parent e122129196
commit 274d87241f
20 changed files with 1829 additions and 4 deletions

View File

@@ -132,6 +132,7 @@ public class PlayerMovement : MonoBehaviour
if ((virtualButtonJumpLastFrame == 1f && isBasicallyGrounded && jumping == false) // Coyote Jump: Must have jump pressed this frame and be grounded in last time frame and not be actually jumping.
|| (jumpInputStillValid && Time.time - lastTimeJumpPressed <= jumpLenience && IsPhysicallyGrounded())) // Buffered Jump: Must have pressed jump in the last time frame and be jumping
{
AudioManager.Instance.PlaySound("Jump");
jumpPhysics = true;
jumping = true;
jumpInputStillValid = false;