Exemplo n.º 1
0
 public void SetPlayerId(string dissId)
 {
     _comms = FindObjectOfType <DissonanceComms>();
     if (_comms != null)
     {
         _playerId = dissId;
         _comms.TrackPlayerPosition(this);
         // _comms.
         _isTracking = true;
     }
 }
Exemplo n.º 2
0
    void StartTracking()
    {
        // if (IsTracking)
        //     throw Log.CreatePossibleBugException("Attempting to start player tracking, but tracking is already started", "B7D1F25E-72AF-4E93-8CFF-90CEBEAC68CF");

        if (comms != null)
        {
            comms.TrackPlayerPosition(this);
            IsTracking = true;
        }
    }
Exemplo n.º 3
0
        private void StartTracking()
        {
            if (IsTracking)
            {
                throw Log.CreatePossibleBugException("Attempting to start player tracking, but tracking is already started", "31971B1F-52FD-4FCF-89E9-67A17A917921");
            }

            if (_comms != null)
            {
                _comms.TrackPlayerPosition(this);
                IsTracking = true;
            }
        }
Exemplo n.º 4
0
        private void StartTracking()
        {
            if (IsTracking)
            {
                throw Log.CreatePossibleBugException("Attempting to start player tracking, but tracking is already started", "0663D808-ACCC-4D13-8913-03F9BA0C8578");
            }

            if (_comms != null)
            {
                _comms.TrackPlayerPosition(this);
                IsTracking = true;
            }
        }
Exemplo n.º 5
0
        private IEnumerator StartTrackingCo()
        {
            // Wait until Dissonance comms object is initialised
            while (_comms == null)
            {
                _comms = FindObjectOfType <DissonanceComms>();
                yield return(null);
            }

            // Now start tracking
            _comms.TrackPlayerPosition(this);
            IsTracking = true;

            _startCo = null;
        }