private void RaceTime_Tick(object sender, EventArgs e) { for (int i = 0; i < Data.chevilries.Length; i++) { Data.chevilries[Data.rand.Next(0, 4)].isAccelerating(); if (Data.chevilries[i].isAccelerating()) { RaceTime.Stop(); RaceTime.Enabled = false; StartRace.Enabled = true; announceWinner(i + 1); } } }
private void RaceTime_Tick(object sender, EventArgs e) { for (int i = 0; i < Storage.shuriken.Length; i++) { Storage.shuriken[Storage.rand.Next(0, 4)].isAccelerating(); if (Storage.shuriken[i].isAccelerating()) { RaceTime.Stop(); RaceTime.Enabled = false; BeginRace.Enabled = true; announceWinner(i + 1); } } }