예제 #1
0
 public void EnterExcute()
 {
     //curPos = soliderInfo.GetPosition();
     //targetPos = soliderInfo.GetAttackMovePos();
     targetPos = GetAtkPos(attackInfo.GetPosition());
     speed     = soliderInfo.GetSpeed();
     soliderInfo.Run(targetPos);
 }
예제 #2
0
 public void EnterExcute()
 {
     curPos    = soliderInfo.GetPosition();
     targetPos = soliderInfo.GetBarrackPos();
     speed     = soliderInfo.GetSpeed();
     //Debug.Log(curPos);
     //Debug.Log(targetPos);
     soliderInfo.Run(targetPos);
 }
예제 #3
0
 public void EnterExcute()
 {
     curPos    = soliderInfo.GetPosition();
     targetPos = soliderInfo.GetAttackMovePos();
     speed     = soliderInfo.GetSpeed();
     if (targetPos.y > curPos.y && Math.Abs(targetPos.y - curPos.y) > Math.Abs(targetPos.x - curPos.x))
     {
         soliderInfo.RunUp();
     }
     else if (targetPos.x >= curPos.x)
     {
         soliderInfo.RunRight();
     }
     else
     {
         soliderInfo.RunLeft();
     }
 }