Fixed Kick

This commit is contained in:
Melbyj1125
2021-12-10 13:27:00 -06:00
parent 6b893f8a77
commit 614e0aa685
2 changed files with 8 additions and 7 deletions

View File

@@ -199,13 +199,14 @@ public class dPlayerMovement : NetworkBehaviour
//if vel from input is greater than 0, start sprinting animation
if (PlayerSpeed() > 0.1)
{
Debug.Log(driftVel.magnitude);
animator.SetBool("isRunning", true);
//Debug.Log(driftVel.magnitude);
if(animator != null) animator.SetBool("isRunning", true);
}
//if low enough movement from player (this will be still at this value) stop animation
else if (driftVel.magnitude < .510f)
{
animator.SetBool("isRunning", false);
if(animator != null) animator.SetBool("isRunning", false);
}
//Move Player