Exemple #1
0
 public void Go()
 {
     goStartingLine.GetComponent <RaceStarter>().enabled = false;
     foreach (Racer r in Racers)
     {
         r.LapStartTime = Time.time;
         r.goRacer.GetComponent <Rigidbody>().constraints = RigidbodyConstraints.None;
         r.VehicleManager.Gps.RecoveryAllowed             = true;
     }
     Started   = true;
     StartTime = Time.time;
     if (Main.Instance.Ghost)
     {
         GhostController _ghostController = (GhostController)DrivingPlayManager.Current.GhostCarManager.VehicleController;
         _ghostController.Go();
     }
 }