Ejemplo n.º 1
0
 private void Animate(Vector2 direction)
 {
     if (!_isAttacking)
     {
         if (direction == Vector2.zero)
         {
             _animator.AnimateIdle();
         }
         else
         {
             CurrentDirection = DirectionUtilities.DirectionFromVector(direction);
             _animator.AnimateMove(CurrentDirection);
         }
     }
 }