public LoadingScreenVM() { AddDisposable(EventBus.Subscribe(this)); if (s_FirstScene) { s_FirstScene = false; return; } CoroutineHandler.StartCoroutineOnHandler(StartLoading()); }
private void StartGameFinishCountDown() { if (m_IsCountingGameFinish) { return; } m_IsCountingGameFinish = true; m_GameFinishTimePassed = 0f; EventBus.TriggerEvent <IGameFinishCountDownHandler>(h => h.HandleStartGameFinishCountDown()); EventBus.TriggerEvent <IGameFinishCountDownPercentageHandler>(h => h.HandleGameFinishCountDownPercentageChanged(0f)); m_GameFinishCountDownEnumerator = AddDisposable(CoroutineHandler.StartCoroutineOnHandler(GameFinishCountDownCoroutine())); }