示例#1
0
        public LoadingScreenVM()
        {
            AddDisposable(EventBus.Subscribe(this));
            if (s_FirstScene)
            {
                s_FirstScene = false;
                return;
            }

            CoroutineHandler.StartCoroutineOnHandler(StartLoading());
        }
示例#2
0
        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()));
        }