Example #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;
 }
Example #2
0
        private void OnCanelRevampSetting(UIRevampSetting calledObject)
        {
            SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = true;
            SoundUtils.PlaySE(mAudioClip_SE_017);
            KeyControl nextFocusKeyController = null;

            calledObject.Hide(delegate
            {
                RevampRecipeModel[] recipes    = mRevampManager.GetRecipes();
                RevampRecipeDetailModel detail = mRevampManager.GetDetail(mRevampContext.RevampRecipe.RecipeId, mRevampContext.GetBeforeSlotItemInfo().MemId);
                int num = 0;
                RevampRecipeModel[] array = recipes;
                foreach (RevampRecipeModel revampRecipeModel in array)
                {
                    if (revampRecipeModel.RecipeId == detail.RecipeId)
                    {
                        break;
                    }
                    num++;
                }
                mRevampInfoBalloon.alpha = 1f;
                mRevampInfoBalloon.SayMessage("[000000]どの装備の改修を試みますか?");
                if (num <= recipes.Length)
                {
                    nextFocusKeyController = ShowUIRevampRecipeList(num);
                }
                else
                {
                    nextFocusKeyController = ShowUIRevampRecipeList(0);
                }
                ChangeFocusKeyController(nextFocusKeyController);
                UnityEngine.Object.Destroy(calledObject.gameObject);
            });
        }
Example #3
0
        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);
        }
Example #4
0
        private void OnSelectedSlotItemListener(UIRevampSlotItemScrollListChildNew selectedSlotItemView)
        {
            mRevampInfoBalloon.alpha = 1f;
            mRevampContext.SetBeforeSlotItemInfo(selectedSlotItemView.GetModel());
            mRevampManager.GetDetail(mRevampContext.RevampRecipe.RecipeId, mRevampContext.GetBeforeSlotItemInfo().MemId);
            UIRevampSetting revampSetting = ShowUIRevampSetting(mRevampContext);
            int             num           = UnityEngine.Random.Range(0, 100);

            if (40 < num)
            {
                PlayAkashiVoice(mAudioClip_305);
            }
            else
            {
                PlayAkashiVoice(mAudioClip_313);
            }
            mUIRevampSlotItemScrollListParentNew.SetActive(isActive: false);
            revampSetting.Show(delegate
            {
                _isSettingMode           = true;
                KeyControl keyController = revampSetting.GetKeyController();
                ChangeFocusKeyController(keyController);
            });
        }
Example #5
0
        private IEnumerator OnStartRevampCoroutine(UIRevampSetting calledObject)
        {
            if (SingletonMonoBehaviour <UIPortFrame> .exist())
            {
                SingletonMonoBehaviour <UIPortFrame> .Instance.isColliderEnabled = false;
            }
            _isAnimation = true;
            SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = false;
            SoundUtils.PlaySE(mAudioClip_SE_020);
            RevampRecipeDetailModel revampRecipeDetail = mRevampManager.GetDetail(mRevampContext.RevampRecipe.RecipeId, mRevampContext.GetBeforeSlotItemInfo().MemId);

            revampRecipeDetail.Determined = calledObject.IsDetermined();
            SlotitemModel revampedSlotItemModel = mRevampManager.Revamp(revampRecipeDetail);
            List <int>    ids = new List <int>();

            ids.AddRange(TrophyUtil.Unlock_At_Revamp());
            ids.AddRange(TrophyUtil.Unlock_AlbumSlotNum());
            SingletonMonoBehaviour <TrophyManager> .Instance.UnlockTrophies(ids);

            if (SingletonMonoBehaviour <UIPortFrame> .exist())
            {
                SingletonMonoBehaviour <UIPortFrame> .Instance.UpdateHeaderInfo(mRevampManager);
            }
            if (revampedSlotItemModel != null)
            {
                mRevampContext.SetSuccess(success: true);
                mRevampContext.SetAfterSlotItemInfo(revampedSlotItemModel);
            }
            else
            {
                mRevampContext.SetSuccess(success: false);
            }
            UpdateInfo(mRevampManager);
            int       consortShipResourceId = -1;
            int       consortShipVoiceId    = -1;
            ShipModel consortShipModel      = mRevampManager.GetConsortShip(revampRecipeDetail, out consortShipResourceId, out consortShipVoiceId);

            if (consortShipModel != null)
            {
                int mstId = mRevampManager.UserInfo.GetDeck(mDeckId).GetShip(1).MstId;
                mTexture_AssistantShip.mainTexture = SingletonMonoBehaviour <ResourceManager> .Instance.ShipTexture.Load(consortShipModel.GetGraphicsMstId(), (!consortShipModel.IsDamaged())? 9 : 10);

                mTexture_AssistantShip.MakePixelPerfect();
            }
            yield return(new WaitForEndOfFrame());

            calledObject.Hide(delegate
            {
                throw new NotImplementedException("なにこれ");
                //if (base._003CexistConsortShip_003E__6)
                //{
                //	this.mTransform_AssistantShipParent.DOLocalMove(this.mVector3_AssistantShipShowLocalPosition, 0.3f).OnComplete(delegate
                //	{
                //		ShipUtils.PlayShipVoice(consortShipModel, consortShipVoiceId);
                //	});
                //}

                this.ChangeFocusKeyController(null);
                UnityEngine.Object.Destroy(calledObject.gameObject);
                this.mRevampAkashi.ChangeBodyTo(UIRevampAkashi.BodyType.Making);
                this.mRevampInfoBalloon.SayMessage("[000000]改修中・・・[-]");
                this.OnStartRevampAnimation(this.mRevampContext);
            });
        }
Example #6
0
 private void OnStartRevamp(UIRevampSetting calledObject)
 {
     StartCoroutine(OnStartRevampCoroutine(calledObject));
 }
Example #7
0
        private void UIRevampSettingActionCallBack(UIRevampSetting.ActionType actionType, UIRevampSetting calledObject)
        {
            _isSettingMode = false;
            switch (actionType)
            {
            case UIRevampSetting.ActionType.CancelRevamp:
                OnCanelRevampSetting(calledObject);
                break;

            case UIRevampSetting.ActionType.StartRevamp:
                OnStartRevamp(calledObject);
                break;
            }
        }