private void OnTrayLoaded() { AdventureSubScene component = base.GetComponent <AdventureSubScene>(); if (component != null) { component.SetIsLoaded(true); } }
private void CompleteTransition() { AdventureSubScene component = this.m_CurrentSubScene.GetComponent <AdventureSubScene>(); if (component != null) { component.NotifyTransitionComplete(); this.UpdateAdventureModeMusic(); } this.EnableTransitionBlocker(false); }
private void Awake() { s_instance = this; this.m_practicePickerTray = ((GameObject)GameUtils.Instantiate((GameObject)this.m_practicePickerTrayPrefab, this.m_practicePickerTrayContainer, false)).GetComponent <PracticePickerTrayDisplay>(); if (UniversalInputManager.UsePhoneUI != null) { SceneUtils.SetLayer(this.m_practicePickerTray, GameLayer.IgnoreFullScreenEffects); } AssetLoader.Get().LoadActor((UniversalInputManager.UsePhoneUI == null) ? "DeckPickerTray" : "DeckPickerTray_phone", delegate(string name, GameObject go, object data) { if (go == null) { Debug.LogError("Unable to load DeckPickerTray."); } else { this.m_deckPickerTray = go.GetComponent <DeckPickerTrayDisplay>(); if (this.m_deckPickerTray == null) { Debug.LogError("DeckPickerTrayDisplay component not found in DeckPickerTray object."); } else { if (this.m_deckPickerTrayContainer != null) { GameUtils.SetParent(this.m_deckPickerTray, this.m_deckPickerTrayContainer, false); } AdventureSubScene component = base.GetComponent <AdventureSubScene>(); if (component != null) { this.m_practicePickerTray.AddTrayLoadedListener(delegate { this.OnTrayPartLoaded(); this.m_practicePickerTray.gameObject.SetActive(false); }); this.m_deckPickerTray.AddDeckTrayLoadedListener(new DeckPickerTrayDisplay.DeckTrayLoaded(this.OnTrayPartLoaded)); if (this.m_practicePickerTray.IsLoaded() && this.m_deckPickerTray.IsLoaded()) { component.SetIsLoaded(true); } } this.InitializeTrays(); CheatMgr.Get().RegisterCheatHandler("replaymissions", new CheatMgr.ProcessCheatCallback(this.OnProcessCheat_replaymissions), null, null, null); CheatMgr.Get().RegisterCheatHandler("replaymission", new CheatMgr.ProcessCheatCallback(this.OnProcessCheat_replaymissions), null, null, null); NetCache.Get().RegisterScreenPractice(new NetCache.NetCacheCallback(this.OnNetCacheReady)); } } }, null, false); }
private void DoSubSceneTransition(AdventureSubScene subscene) {