Esempio n. 1
0
 /**
  * Sort competitors from slowest to fastest.
  */
 public void Start()
 {
     SpeedModel.Start();
     lanes = new float[SpeedModel.competitorCount];
     for (int c = 0; c < SpeedModel.competitors.Length; c++)
     {
         lanes[c] = Mathf.Floor(Random.value * 3.0f) - 1.0f;
     }
     playerRank           = SpeedModel.competitorCount + 1;
     playerRankText       = formatPlayerRankText(playerRank);
     time                 = 0;
     passInterval         = 0;
     SpeedModel.isEnabled = false;
 }