private void OnDestroy() { mPrefab_MapTransitionCutManager = null; mPrefab_UIStateCover = null; mTexture_sallyBGsky.mainTexture = null; mTexture_sallyBGclouds.mainTexture = null; mTexture_sallyBGcloudRefl.mainTexture = null; mTexture_bgSea.mainTexture = null; mTexture_snow.mainTexture = null; }
private bool OnStartSortieStage() { mKeyController.IsRun = false; mKeyController.ClearKeyAll(); SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = false; SingletonMonoBehaviour <Live2DModel> .Instance.forceStop(); SingletonMonoBehaviour <FadeCamera> .Instance.isDrawNowLoading = false; SingletonMonoBehaviour <NowLoadingAnimation> .Instance.isNowLoadingAnimation = true; SoundUtils.PlaySE(SEFIleInfos.CommonEnter3); DebugUtils.SLog("OnStartSortieStage1"); mStageConfirm.Hide(); DebugUtils.SLog("OnStartSortieStage2"); DOTween.Sequence().Append(mRouletteSelector.transform.DOLocalMoveY(0f, 0.4f).SetEase(Ease.OutBounce)).Join(mRouletteSelector.transform.DOScale(new Vector3(1.6f, 1.6f, 1f), 0.3f)); ShipUtils.PlayShipVoice(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck.GetFlagShip(), App.rand.Next(13, 15)); DebugUtils.SLog("OnStartSortieStage3"); this.DelayAction(0.5f, delegate { DebugUtils.SLog("OnStartSortieStage mStageConfirm.ClickAnimation"); MapModel mMapModel = mStageConfirm.mMapModel; RetentionData.SetData(new Hashtable { { "sortieMapManager", mSortieManager.GoSortie(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck.Id, mMapModel.MstId) }, { "rootType", 0 }, { "shipRecoveryType", ShipRecoveryType.None }, { "escape", false } }); UnityEngine.Object.Destroy(SingletonMonoBehaviour <PortObjectManager> .Instance.gameObject); UnityEngine.Object.Destroy(GameObject.Find("Information Root")); UnityEngine.Object.Destroy(GameObject.Find("OverView")); StartCoroutine(AsyncLoad()); MapTransitionCutManager component = Util.Instantiate(mPrefab_MapTransitionCutManager.gameObject, base.transform.root.Find("Map Root").gameObject).GetComponent <MapTransitionCutManager>(); component.transform.localPosition = mStrategyTopTaskManager.strategyCamera.transform.localPosition + new Vector3(-26.4f, -43f, 496.4f); component.Initialize(mMapModel, mAsyncOperation); TutorialModel tutorial = StrategyTopTaskManager.GetLogicManager().UserInfo.Tutorial; SingletonMonoBehaviour <AppInformation> .Instance.NextLoadType = AppInformation.LoadType.Ship; DebugUtils.SLog("OnStartSortieStage mStageConfirm.ClickAnimation END"); }); DebugUtils.SLog("OnStartSortieStage4"); return(false); }