public void StartGame() { if (_coroutine != null) { _coroutineManager.StopCoroutine(_coroutine); } _levelModel.Clear(); _coroutine = _coroutineManager.StartCoroutine(GameRoutine()); }
public void Die() { if (telemetryCoroutine != null) { coroutineManager.StopCoroutine(telemetryCoroutine); } onData = null; if (onDisconnect != null) { onDisconnect(); onDisconnect = null; } }
public void GoAway() { if (telemetryCoroutine != null) { coroutineManager.StopCoroutine(telemetryCoroutine); } onData = null; if (onDisconnect != null) { onDisconnect(); onDisconnect = null; advertising = true; } }