private void Awake() { s_instance = this; FullScreenFXMgr.Get().Vignette(1f, 0.5f, iTween.EaseType.easeInOutQuad, null); this.m_lessonTitle.Text = GameStrings.Get("TUTORIAL_PROGRESS_LESSON_TITLE"); this.m_missionProgressTitle.Text = GameStrings.Get("TUTORIAL_PROGRESS_TITLE"); this.m_exitButton.gameObject.SetActive(false); this.InitMissionRecords(); }
public bool IsInGameMenu() { if ((!SceneMgr.Get().IsInGame() || !SceneMgr.Get().IsSceneLoaded()) || LoadingScreen.Get().IsTransitioning()) { return(false); } if (GameState.Get() == null) { return(false); } if (!GameState.Get().IsConcedingAllowed() && !GameMgr.Get().IsSpectator()) { return(false); } if (GameState.Get().IsGameOver()) { return(false); } if ((TutorialProgressScreen.Get() != null) && TutorialProgressScreen.Get().gameObject.activeInHierarchy) { return(false); } return(true); }
private void OnDestroy() { NetCache.Get().UnregisterNetCacheHandler(new NetCache.NetCacheCallback(this.UpdateProgress)); s_instance = null; }