aboutsummaryrefslogtreecommitdiffstats
path: root/Assets/Scripts/Items/Whip.cs
diff options
context:
space:
mode:
authorcross28 <icross028@gmail.com>2022-04-18 04:10:52 -0500
committercross28 <icross028@gmail.com>2022-04-18 04:10:52 -0500
commite6e9c0826f2d622caefa5e1a99d643a85f4c058f (patch)
tree3b52d2ee39abbcb11b2d572e2ec2e3b870a97749 /Assets/Scripts/Items/Whip.cs
parent16fff95b13a3c28f4cee6791a897412ce0a32708 (diff)
feat: Rewrote the audio manager. Added background music
Diffstat (limited to 'Assets/Scripts/Items/Whip.cs')
-rw-r--r--Assets/Scripts/Items/Whip.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Assets/Scripts/Items/Whip.cs b/Assets/Scripts/Items/Whip.cs
index 17061f8..b482f8d 100644
--- a/Assets/Scripts/Items/Whip.cs
+++ b/Assets/Scripts/Items/Whip.cs
@@ -42,7 +42,7 @@ namespace MontanaJohns.Items
if (LayerMask.LayerToName(collisionGameObject.layer) == "Grapple")
{
currentHook = Instantiate(hook, collisionGameObject.transform.position, Quaternion.identity);
- SoundManager.PlaySound("WhipSwoosh");
+ FindObjectOfType<AudioManager>().Play("WhipSwoosh");
return clickLocation;
}
else
@@ -64,7 +64,7 @@ namespace MontanaJohns.Items
{
currentHook = Instantiate(hookNoSwing, collisionGameObject.transform.position, Quaternion.identity);
collisionGameObject.GetComponent<Actor>().TakeDamage(player.GetComponent<Player>().stats.damage);
- SoundManager.PlaySound("WhipSwoosh");
+ FindObjectOfType<AudioManager>().Play("WhipSwoosh");
yield return new WaitForSeconds(0.1f);
Destroy(currentHook);
ropeExists = false;