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); }
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; }