CombatAi Animator speed 값 변경
This commit is contained in:
parent
517dbfde0d
commit
4e7987ee0d
@ -67,7 +67,7 @@ namespace BlueWaterProject
|
|||||||
{
|
{
|
||||||
if (combatAnimator.runtimeAnimatorController != null && combatAnimator.isActiveAndEnabled)
|
if (combatAnimator.runtimeAnimatorController != null && combatAnimator.isActiveAndEnabled)
|
||||||
{
|
{
|
||||||
combatAnimator.SetFloat(SpeedHash, combatAgent.velocity.normalized.magnitude);
|
combatAnimator.SetFloat(SpeedHash, combatAgent.velocity.magnitude);
|
||||||
}
|
}
|
||||||
UpdateLookAtTarget();
|
UpdateLookAtTarget();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user