private void OnDestroy() { UserInterfacePortManager.ReleaseUtils.Release(ref mParticleSystem_SuccessStars); UserInterfacePortManager.ReleaseUtils.Release(ref mAudioClip_BGM); UserInterfacePortManager.ReleaseUtils.Release(ref mAudioClip_SE_020); UserInterfacePortManager.ReleaseUtils.Release(ref mAudioClip_SE_022); UserInterfacePortManager.ReleaseUtils.Release(ref mAudioClip_SE_017); UserInterfacePortManager.ReleaseUtils.Release(ref mAudioClip_SE_002); UserInterfacePortManager.ReleaseUtils.Release(ref mAudioClip_SE_023); UserInterfacePortManager.ReleaseUtils.Release(ref mAudioClip_SE_021); UserInterfacePortManager.ReleaseUtils.Release(ref mAudioClip_303); UserInterfacePortManager.ReleaseUtils.Release(ref mAudioClip_304); UserInterfacePortManager.ReleaseUtils.Release(ref mAudioClip_305); UserInterfacePortManager.ReleaseUtils.Release(ref mAudioClip_308); UserInterfacePortManager.ReleaseUtils.Release(ref mAudioClip_309); UserInterfacePortManager.ReleaseUtils.Release(ref mAudioClip_313); mRevampManager = null; mRevampContext = null; mCameraTouchEventCatch = null; mCameraProduction = null; mUIRevampSlotItemScrollListParentNew = null; mRevampRecipeScrollParentNew = null; mPrefab_RevampSetting = null; mPrefab_RevampIcon = null; mRevampMaterialsInfo = null; mRevampInfoBalloon = null; mRevampAkashi = null; mModalCamera = null; mTexture_AssistantShip = null; mTransform_AssistantShipParent = null; mFocusKeyController = null; }
private void OnStartSuccessRevampAnimation(RevampContext context) { _isTop = true; UIRevampIcon revampIcon = Util.Instantiate(mPrefab_RevampIcon.gameObject, base.gameObject).GetComponent <UIRevampIcon>(); revampIcon.Initialize(context.GetBeforeSlotItemInfo().MstId, context.GetBeforeSlotItemInfo().Level, mCameraProduction); revampIcon.StartRevamp(context.GetAfterSlotItemInfo().MstId, context.GetAfterSlotItemInfo().Level, context.GetAfterSlotItemInfo().Name, delegate { SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = true; mRevampAkashi.ChangeBodyTo(UIRevampAkashi.BodyType.Normal); _isAnimation = false; string empty = string.Empty; PlayAkashiVoice(mAudioClip_308); empty += "[000000]改修成功しました。"; empty += "\n"; empty += $"[329ad6]{mRevampContext.GetAfterSlotItemInfo().Name}[-]"; mParticleSystem_SuccessStars.Play(false); if (SingletonMonoBehaviour <UIPortFrame> .exist()) { SingletonMonoBehaviour <UIPortFrame> .Instance.isColliderEnabled = true; } TrophyUtil.Unlock_AlbumSlotNum(); if (mRevampContext.IsModelChange()) { SoundUtils.PlaySE(mAudioClip_SE_023); } else { SoundUtils.PlaySE(mAudioClip_SE_021); } KeyControl keyController = mRevampInfoBalloon.SayMessage(empty, delegate { if (mRevampContext.ConsortShip != null) { mTransform_AssistantShipParent.DOLocalMove(mVector3_AssistantShipHideLocalPosition, 0.6f); } mRevampInfoBalloon.alpha = 1f; UnityEngine.Object.Destroy(revampIcon.gameObject); mRevampInfoBalloon.SayMessage("[000000]どの装備の改修を試みますか?"); mRevampManager.GetDetail(mRevampContext.RevampRecipe.RecipeId, mRevampContext.GetBeforeSlotItemInfo().MemId); RevampRecipeModel[] recipes = mRevampManager.GetRecipes(); int num = 0; RevampRecipeModel[] array = recipes; foreach (RevampRecipeModel revampRecipeModel in array) { if (revampRecipeModel.RecipeId == mRevampContext.RevampRecipe.RecipeId) { break; } num++; } KeyControl keyController2 = (num > recipes.Length) ? ShowUIRevampRecipeList(0) : ShowUIRevampRecipeList(num); ChangeFocusKeyController(keyController2); }); ChangeFocusKeyController(keyController); mTransform_AssistantShipParent.DOLocalMove(mVector3_AssistantShipHideLocalPosition, 0.6f); }); }
private void OnStartRevampAnimation(RevampContext mRevampContext) { if (mRevampContext.Success) { OnStartSuccessRevampAnimation(mRevampContext); } else { OnStartFailRevampAnimation(mRevampContext); } }
private UIRevampSetting ShowUIRevampSetting(RevampContext revampContext) { RevampRecipeDetailModel detail = mRevampManager.GetDetail(revampContext.RevampRecipe.RecipeId, revampContext.GetBeforeSlotItemInfo().MemId); mRevampManager.IsValidRevamp(detail); UIRevampSetting component = Util.Instantiate(mPrefab_RevampSetting.gameObject, base.gameObject).GetComponent <UIRevampSetting>(); component.SetOnRevampSettingActionCallBack(UIRevampSettingActionCallBack); component.Initialize(detail, UIRevampRecipeSettingCheckDelegate, mCameraProduction); return(component); }
private KeyControl ShowUIRevampSlotItemGrid(RevampContext revampContext) { _isTop = false; SlotitemModel[] slotitemList = mRevampManager.GetSlotitemList(mRevampContext.RevampRecipe.RecipeId); ChangeFocusKeyController(null); mUIRevampSlotItemScrollListParentNew.SetActive(isActive: false); mUIRevampSlotItemScrollListParentNew.SetActive(isActive: true); _uiOverlayButton2 = mUIRevampSlotItemScrollListParentNew.GetOverlayBtn2(); EventDelegate.Add(_uiOverlayButton2.onClick, _onClickOverlayButton2); mRevampInfoBalloon.alpha = 1E-10f; mUIRevampSlotItemScrollListParentNew.Initialize(slotitemList); mUIRevampSlotItemScrollListParentNew.SetCamera(mCameraTouchEventCatch); mUIRevampSlotItemScrollListParentNew.SetOnSelectedSlotItemListener(OnSelectedSlotItemListener); mUIRevampSlotItemScrollListParentNew.SetOnBackListener(OnBackSlotItemList); mUIRevampSlotItemScrollListParentNew.StartControl(); return(mUIRevampSlotItemScrollListParentNew.GetKeyController()); }
private KeyControl ShowUIRevampRecipeList(int firstFocusIndex) { mRevampRecipeScrollParentNew.SetActive(isActive: false); mRevampRecipeScrollParentNew.SetActive(isActive: true); _isTop = true; mRevampManager.GetRecipes(); mRevampContext = new RevampContext(); mRevampRecipeScrollParentNew.Initialize(mRevampManager); mRevampRecipeScrollParentNew.SetOnSelectedListener(OnSelectedRecipeListener); mRevampRecipeScrollParentNew.SetCamera(mCameraTouchEventCatch); KeyControl keyController = mRevampRecipeScrollParentNew.GetKeyController(); mRevampRecipeScrollParentNew.PlaySlotInAnimation(); mRevampRecipeScrollParentNew.SetOnFinishedSlotInAnimationListener(delegate { mRevampRecipeScrollParentNew.StartControl(); }); return(keyController); }