Ejemplo n.º 1
0
 private void StartMove()
 {
     Mode = AIMode.Move;
     //choose direction
     facing     = Facing.RandomFacingThatIsntThisOne(facing);
     trajectory = Facing.FacingToUnitVector3(facing);
     //choose length of travel
     chosenTravelTime = Random.Range(minTravelTime, maxTravelTime);
 }