コード例 #1
0
        private IEnumerator StartRevampCoroutine(Action finishedCallBack)
        {
            SoundUtils.PlaySE(SEFIleInfos.Revamp_Yousetu);

            var anim_revamp_sparks = mAnimation_Effect.GetClip("Anim_RevampSparks").length;

            Vector3 defaultPosition = mTexture_Icon.gameObject.transform.localPosition;

            for (int shakeAnimationCount = 0; shakeAnimationCount < 4; shakeAnimationCount++)
            {
                mAnimation_Effect.Play("Anim_RevampSparks");
                iTween.ShakePosition(base.gameObject, iTween.Hash("x", defaultPosition.x + 5f, "y", defaultPosition.y + 5f, "isLocal", true, "time", 0.3f));
                yield return(new WaitForSeconds(0.9f));
            }
            if (mIsGradeUpItem)
            {
                ProdRevampReceiveItem prodRevampReciveItem = ProdRevampReceiveItem.Instantiate(mPreafab_ProdRevampReceiveItem, mCameraProduction.transform, new SlotitemModel_Mst(mBeforeSlotItemMasterId), new SlotitemModel_Mst(mAfterSlotItemMasterId), 500, useJukuren: false, new KeyControl());
                prodRevampReciveItem.Play(delegate
                {
                    if (finishedCallBack != null)
                    {
                        mIsGradeUpItem = false;
                        finishedCallBack();
                    }
                });
            }
            else
            {
                finishedCallBack?.Invoke();
            }
            yield return(null);
        }
コード例 #2
0
 private void OnDestroy()
 {
     mPreafab_ProdRevampReceiveItem = null;
     mTexture_Icon  = null;
     mTexture_Icon2 = null;
     mGameObject_LevelBackgroundTextImage = null;
     mGameObject_LevelTag    = null;
     mGameObject_LevelMaxTag = null;
     mLabel_Level            = null;
     mAnimation_Effect       = null;
     mPanelThis        = null;
     mSlotitemModel    = null;
     mCameraProduction = null;
 }
コード例 #3
0
 private void Initialize(IReward_Slotitem from, IReward_Slotitem to, bool isCosumedToJoin, Action onFinished)
 {
     ProdRevampReceiveItem.Instantiate(mPrefab_ProdRevampReceiveItem, base.gameObject.transform, from, to, 500, isCosumedToJoin, new KeyControl()).Play(onFinished);
 }
コード例 #4
0
 private void Initialize(IReward_Slotitem from, IReward_Slotitem to, bool isCosumedToJoin, Action onFinished)
 {
     ProdRevampReceiveItem.Instantiate(this.mPrefab_ProdRevampReceiveItem, base.get_gameObject().get_transform(), from, to, 500, isCosumedToJoin, new KeyControl(0, 0, 0.4f, 0.1f)).Play(onFinished);
 }