示例#1
0
        public void SetForRace(string selectedCourse)
        {
            SendInterval        = Default_Send_Interval;
            Message             = "";
            Active              = true;
            SendOnMessageChange = false;
            CommsEventCallback  = HandleCommsEvent;
            RaceInProgress      = true;

            MillisecondsSinceLastReceive          = 0;
            _lastReceivedTimestamp                = 0;
            _millisecondsSinceLastTimestampChange = 0;
            _otherPlayerData = new OpponentRaceProgressCoordinator();
            _selectedCourse  = selectedCourse;
        }
        public void SetForRace(string selectedCourse)
        {
            SendInterval = Default_Send_Interval;
            Message = "";
            Active = true;
            SendOnMessageChange = false;
            CommsEventCallback = HandleCommsEvent;
            RaceInProgress = true;

            MillisecondsSinceLastReceive = 0;
            _lastReceivedTimestamp = 0;
            _millisecondsSinceLastTimestampChange = 0;
            _otherPlayerData = new OpponentRaceProgressCoordinator();
            _selectedCourse = selectedCourse;
        }