コード例 #1
0
        public void StartGame()
        {
            if (_coroutine != null)
            {
                _coroutineManager.StopCoroutine(_coroutine);
            }

            _levelModel.Clear();
            _coroutine = _coroutineManager.StartCoroutine(GameRoutine());
        }
コード例 #2
0
 public void Die()
 {
     if (telemetryCoroutine != null)
     {
         coroutineManager.StopCoroutine(telemetryCoroutine);
     }
     onData = null;
     if (onDisconnect != null)
     {
         onDisconnect();
         onDisconnect = null;
     }
 }
コード例 #3
0
 public void GoAway()
 {
     if (telemetryCoroutine != null)
     {
         coroutineManager.StopCoroutine(telemetryCoroutine);
     }
     onData = null;
     if (onDisconnect != null)
     {
         onDisconnect();
         onDisconnect = null;
         advertising  = true;
     }
 }