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

@@ -40,7 +40,7 @@ public class UseItem : MonoBehaviour
}
}
private void PickUpItem(GameObject item) // Player picks up hat and starts hold counter
public void PickUpItem(GameObject item) // Player picks up hat and starts hold counter
{
if (damageable.dying) return; // Prevent picking up items if the player is dying
if (HatRespawn.canBePickedUp == false) return; // Prevent picking up items if they are not interactable
@@ -58,6 +58,7 @@ public class UseItem : MonoBehaviour
{
GameManager.playerHoldTimes[gameObject] = 0f;
}
AudioManager.Instance.PlaySound("Pickup Hat");
GameManager.Instance.StopCoroutine("MoveHatToWinner");
}