Beispiel #1
0
 static public bool tryConnectTimer(string port)
 {
     _trackTimer = new TrackTimer(port);
     if (_trackTimer.Connected)
     {
         //if connected setup race manager, because it uses the track timer
         _raceManager           = new RaceManager(Settings.NumberOfLanes);
         RaceManager.onGotRace += RaceManager_onGotRace;
     }
     return(_trackTimer.Connected);
 }
Beispiel #2
0
 static public bool tryConnectTimer(string port)
 {
     _trackTimer = new TrackTimer(port);
     if (_trackTimer.Connected)
     {
         //if connected setup race manager, because it uses the track timer
         _raceManager = new RaceManager(Settings.NumberOfLanes);
         RaceManager.onGotRace += RaceManager_onGotRace;
     }
     return _trackTimer.Connected;
 }