public override void Destroy() { Singleton <MPManager> .Instance.Destroy(); Singleton <MPManager> .Destroy(); base.Destroy(); }
private void OnContinueBtnClick() { if (Singleton <LevelScoreManager> .Instance != null) { Singleton <LevelScoreManager> .Destroy(); } this.RequestToEnterLevel(); }
public void OnDestroy() { if (Singleton <WwiseAudioManager> .Instance != null) { Singleton <WwiseAudioManager> .Instance.PopSoundBankScale(); Singleton <MainMenuBGM> .Instance.TryEnterMainMenu(); } Singleton <LevelManager> .Instance.Destroy(); Singleton <LevelManager> .Destroy(); }
public virtual void Destroy() { Singleton <DynamicObjectManager> .Instance.Destroy(); Singleton <PropObjectManager> .Instance.Destroy(); Singleton <MonsterManager> .Instance.Destroy(); Singleton <AvatarManager> .Instance.Destroy(); Singleton <EventManager> .Instance.Destroy(); Singleton <LevelDesignManager> .Instance.Destroy(); Singleton <AuxObjectManager> .Instance.Destroy(); Singleton <EffectManager> .Instance.Clear(); Singleton <DynamicObjectManager> .Destroy(); Singleton <MonsterManager> .Destroy(); Singleton <PropObjectManager> .Destroy(); Singleton <CameraManager> .Destroy(); Singleton <AvatarManager> .Destroy(); Singleton <RuntimeIDManager> .Destroy(); Singleton <StageManager> .Destroy(); Singleton <EventManager> .Destroy(); Singleton <LevelDesignManager> .Destroy(); Singleton <AuxObjectManager> .Destroy(); Singleton <DetourManager> .Destroy(); Singleton <ShaderDataManager> .Destroy(); Singleton <CinemaDataManager> .Destroy(); this.DestroyBehaviorDesigner(); this.ResetGlobalTimeScale(); }
public override void Destroy() { if (Singleton <LevelScoreManager> .Instance == null) { base.Destroy(); } else { bool hasNuclearActivityBefore = Singleton <LevelScoreManager> .Instance.hasNuclearActivityBefore; bool flag2 = (this._levelData != null) && Singleton <LevelScoreManager> .Instance.HasNuclearActivity(this._levelData.levelId); bool body = !hasNuclearActivityBefore && flag2; Singleton <LevelScoreManager> .Destroy(); Singleton <NetworkManager> .Instance.RequestHasGotItemIdList(); base.Destroy(); if (this.onDestory != null) { this.onDestory(); } Singleton <NotifyManager> .Instance.FireNotify(new Notify(NotifyTypes.StageEnd, body)); } }
public static void DestroyAll() { Singleton <WwiseAudioManager> .Instance.Destroy(); Singleton <WwiseAudioManager> .Destroy(); Singleton <AssetBundleManager> .Instance.Destroy(); Singleton <AssetBundleManager> .Destroy(); Singleton <MiHoYoGameData> .Destroy(); Singleton <AccountManager> .Destroy(); Singleton <NotifyManager> .Destroy(); Singleton <NetworkManager> .Instance.Destroy(); Singleton <NetworkManager> .Destroy(); Singleton <MainUIManager> .Destroy(); Singleton <IslandModule> .Destroy(); Singleton <StorageModule> .Destroy(); Singleton <PlayerModule> .Destroy(); Singleton <AvatarModule> .Destroy(); Singleton <LevelModule> .Destroy(); Singleton <GachaModule> .Destroy(); Singleton <FriendModule> .Destroy(); Singleton <MailModule> .Destroy(); Singleton <ChatModule> .Destroy(); Singleton <MissionModule> .Destroy(); Singleton <TutorialModule> .Instance.Destroy(); Singleton <TutorialModule> .Destroy(); Singleton <LevelTutorialModule> .Destroy(); Singleton <CGModule> .Destroy(); Singleton <CommonIDModule> .Destroy(); Singleton <LevelPlotModule> .Destroy(); Singleton <GalTouchModule> .Destroy(); Singleton <BulletinModule> .Destroy(); if (Singleton <EndlessModule> .Instance != null) { Singleton <EndlessModule> .Destroy(); } Singleton <TestModule> .Destroy(); Singleton <ApplicationManager> .Instance.Destroy(); Singleton <ApplicationManager> .Destroy(); Singleton <ChannelPayModule> .Destroy(); Singleton <ShopWelfareModule> .Destroy(); Singleton <ItempediaModule> .Destroy(); Singleton <StoreModule> .Destroy(); Singleton <MainMenuBGM> .Destroy(); Singleton <RealTimeWeatherManager> .Destroy(); Singleton <EffectManager> .Instance.Destroy(); Singleton <EffectManager> .Destroy(); Singleton <QAManager> .Instance.Destroy(); Singleton <QAManager> .Destroy(); }
public void OnDestroy() { Singleton <LevelManager> .Instance.Destroy(); Singleton <LevelManager> .Destroy(); }