示例#1
0
 // Called by other users
 public virtual void MoveTo(float x, float y, float z)
 {
     rotating = false;
     if (actions != null && actions.CancelAttack())
     {
         anim.SetIdle();
         anim.ResetAttack();
     }
     agent.destination = new Vector3(x, y, z);
 }