Пример #1
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);
            });
        }