예제 #1
0
 void Move()
 {
     if (target != null)
     {
         if (Vector2.Distance(parent.transform.position, target.transform.position) > parent.GetAtkDis(target))
         {
             StartAction(target, target.transform.position, astarDis);
             MoveAction();
         }
         else
         {
             StartAtk();
         }
     }
     else
     {
         MoveAction();
     }
 }