Exemplo n.º 1
0
 void NextWaypoint(bool changingRail = false)
 {
     if (changingRail)
     {
         nextWaypoint = currentRail.GetNearestWaypoint(transform.position);
         nextWaypoint = currentRail.GetNextWaypoint();
     }
     else
     {
         nextWaypoint = currentRail.GetNextWaypoint();
     }
 }