예제 #1
0
 public override void Movement()
 {
     if (!isNPC)
     {
         Movements.PlayerBasicMovement(transform, BasicInput.AxisNormDeltaTime, moveSpeed);
         moving = BasicInput.AxisNormalized != Vector2.zero;
         if (moving)
         {
             animator.SetFloat("move-X", BasicInput.AxisNormalized.x);
             animator.SetFloat("move-Y", BasicInput.AxisNormalized.y);
         }
     }
     else
     {
         base.Movement();
     }
 }