aboutsummaryrefslogtreecommitdiffstats
path: root/Assets/Scripts/Items/Whip.cs
diff options
context:
space:
mode:
authorcross28 <45377355+cross28@users.noreply.github.com>2022-04-18 05:06:16 -0500
committerGitHub <noreply@github.com>2022-04-18 05:06:16 -0500
commitb11db6ce1af50c7f76f17b3797c76275f81801d2 (patch)
tree4bad1628cc223bbd40bd5a593c8bf9576fda0402 /Assets/Scripts/Items/Whip.cs
parentea94c8f0bdb549de1d50b471ac022965f20cdd72 (diff)
parenta4d4850cd3e2d17ffa952203f86bf4fbe54a01c2 (diff)
Merge pull request #5 from MontanaJohns/projectile-improvements
Projectile improvements
Diffstat (limited to 'Assets/Scripts/Items/Whip.cs')
-rw-r--r--Assets/Scripts/Items/Whip.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Assets/Scripts/Items/Whip.cs b/Assets/Scripts/Items/Whip.cs
index b826794..b482f8d 100644
--- a/Assets/Scripts/Items/Whip.cs
+++ b/Assets/Scripts/Items/Whip.cs
@@ -42,6 +42,7 @@ namespace MontanaJohns.Items
if (LayerMask.LayerToName(collisionGameObject.layer) == "Grapple")
{
currentHook = Instantiate(hook, collisionGameObject.transform.position, Quaternion.identity);
+ FindObjectOfType<AudioManager>().Play("WhipSwoosh");
return clickLocation;
}
else
@@ -63,6 +64,7 @@ namespace MontanaJohns.Items
{
currentHook = Instantiate(hookNoSwing, collisionGameObject.transform.position, Quaternion.identity);
collisionGameObject.GetComponent<Actor>().TakeDamage(player.GetComponent<Player>().stats.damage);
+ FindObjectOfType<AudioManager>().Play("WhipSwoosh");
yield return new WaitForSeconds(0.1f);
Destroy(currentHook);
ropeExists = false;