示例#1
0
 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;
 }
示例#2
0
 private void OnDestroy()
 {
     mUIRevampSettingActionCallBack   = null;
     mRevampSettingStateCheckDelegate = null;
     mSprite_RequireSlotItemState     = null;
     mLabel_Name              = null;
     mLabel_Fuel              = null;
     mLabel_Steel             = null;
     mLabel_Devkit            = null;
     mLabel_Ammo              = null;
     mLabel_Bauxite           = null;
     mLabel_RevampKit         = null;
     mButton_Start            = null;
     mButton_Cancel           = null;
     mButton_Switch           = null;
     mRevampIcon              = null;
     mYousei_Switch           = null;
     mSprites_Star            = null;
     mPanelThis               = null;
     mButtonsFocusable        = null;
     mRevampRecipeDetailModel = null;
     mButtonFocus             = null;
     mKeyController           = null;
     _uiOverlayButton         = null;
 }
示例#3
0
        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);
            });
        }