Пример #1
0
        private void Initialize()
        {
            AddDisposable(m_ChooseLevelMenuView.CreateViewModelAndBind());
            AddDisposable(m_LoadingScreenView.CreateViewModelAndBind());

            if (Debug.isDebugBuild)
            {
                AddDisposable(m_DevMenuView.CreateViewModelAndBind());
            }
            else
            {
                Destroy(m_DevMenuView);
            }
        }
Пример #2
0
        private void Initialize()
        {
            AddDisposable(m_QuickRestartView.CreateViewModelAndBind());
            AddDisposable(m_PauseMenuView.CreateViewModelAndBind());
            AddDisposable(m_GameOverPanelView.CreateViewModelAndBind());
            AddDisposable(m_BadSignalWarningView.CreateViewModelAndBind());
            AddDisposable(m_WinMenuView.CreateViewModelAndBind());
            AddDisposable(m_LoadingScreenView.CreateViewModelAndBind());

            AddDisposable(FinishIndicatorView.CreateViewModelAndBind());

#if PLATFORM_IOS || PLATFORM_ANDROID
            AddDisposable(m_TouchControlView.CreateViewModelAndBind());
#endif

            if (Debug.isDebugBuild)
            {
                AddDisposable(m_DevMenuView.CreateViewModelAndBind());
            }
            else
            {
                Destroy(m_DevMenuView);
            }
        }