diff options
author | cross28 <icross028@gmail.com> | 2022-04-18 04:10:52 -0500 |
---|---|---|
committer | cross28 <icross028@gmail.com> | 2022-04-18 04:10:52 -0500 |
commit | e6e9c0826f2d622caefa5e1a99d643a85f4c058f (patch) | |
tree | 3b52d2ee39abbcb11b2d572e2ec2e3b870a97749 /Assets/Scripts/Items/Whip.cs | |
parent | 16fff95b13a3c28f4cee6791a897412ce0a32708 (diff) |
feat: Rewrote the audio manager. Added background music
Diffstat (limited to 'Assets/Scripts/Items/Whip.cs')
-rw-r--r-- | Assets/Scripts/Items/Whip.cs | 4 |
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; |