Esempio n. 1
0
 void GotoBattlePos()
 {
     if (Vector3.Distance(transform.position, battlePosTarTrans.position + new Vector3(0, 2, 0)) < GlobalDefineNum.ReachDistance)
     {
         SetStatus(Status.ReachedBattlePos);
         belongCity.ChampionReachedPos(this);
     }
     else
     {
         transform.LookAt(battlePosTarTrans.position + new Vector3(0, 2, 0));
         transform.Translate(Vector3.forward * Time.deltaTime * prop.Speed);
     }
 }