Ejemplo n.º 1
0
 private void CheckAttackDirection(Transform target)
 {
     if (target.position.x > transform.position.x && !mover.facingRight)
     {
         mover.Flip();
     }
     else if (target.position.x < transform.position.x && mover.facingRight)
     {
         mover.Flip();
     }
 }