コード例 #1
0
        private void PlayPowerUpEffect()
        {
            Transform transform;
            ParticleSystem[] systemArray;
            if (this.dialogType == DialogType.PowerUp)
            {
                this._powerUpResultIndex = MiscData.GetEquipPowerUpResultIndex(this.boostRate);
                switch (this._powerUpResultIndex)
                {
                    case 2:
                        Singleton<WwiseAudioManager>.Instance.Post("UI_Upgrade_PTL_Small", null, null, null);
                        transform = base.view.transform.Find("ItemPanel/Effects/UpgradingBigSuccess");
                        transform.gameObject.SetActive(true);
                        goto Label_011D;

                    case 3:
                        Singleton<WwiseAudioManager>.Instance.Post("UI_Upgrade_PTL_Large", null, null, null);
                        transform = base.view.transform.Find("ItemPanel/Effects/UpgradingLargeSuccess");
                        transform.gameObject.SetActive(true);
                        goto Label_011D;
                }
                Singleton<WwiseAudioManager>.Instance.Post("UI_Upgrade_PTL_Small", null, null, null);
                transform = base.view.transform.Find("ItemPanel/Effects/UpgradeSuccess");
                transform.gameObject.SetActive(true);
            }
            else
            {
                Singleton<WwiseAudioManager>.Instance.Post("UI_Upgrade_PTL_Large", null, null, null);
                transform = base.view.transform.Find("ItemPanel/Effects/Evolution");
                transform.gameObject.SetActive(true);
            }
            Label_011D:
            systemArray = transform.GetComponentsInChildren<ParticleSystem>();
            for (int i = 0; i < systemArray.Length; i++)
            {
                systemArray[i].Play();
            }
            if (this.dialogType == DialogType.PowerUp)
            {
                this.SetupLvInfoPanel(0f);
            }
            else if (this.dialogType == DialogType.Evo)
            {
                this.SetupTitleAndStar(0f, false);
            }
            else if (this.dialogType == DialogType.NewAffix)
            {
                this.SetupNewAffixInfo(0f);
            }
        }
コード例 #2
0
 private void SetupLvInfoPanel(float starDelay = 0f)
 {
     this._animationManager = new SequenceAnimationManager(new Action(this.EnableBGClick), null);
     base.view.transform.Find("ItemPanel/3dModel").gameObject.SetActive(false);
     base.view.transform.Find("ItemPanel/StigmataIcon").gameObject.SetActive(false);
     base.view.transform.Find("ItemPanel/OtherIcon").gameObject.SetActive(false);
     if (this.itemDataBefore is WeaponDataItem)
     {
         base.view.transform.Find("ItemPanel/3dModel").gameObject.SetActive(true);
         base.view.transform.Find("ItemPanel/3dModel").GetComponent<MonoWeaponRenderImage>().SetupView(this.itemDataAfter as WeaponDataItem, false, 0);
         this._animationManager.AddAnimation(base.view.transform.Find("ItemPanel/3dModel").GetComponent<MonoAnimationinSequence>(), null);
     }
     else if (this.itemDataBefore is StigmataDataItem)
     {
         base.view.transform.Find("ItemPanel/StigmataIcon").gameObject.SetActive(true);
         base.view.transform.Find("ItemPanel/StigmataIcon/Image").GetComponent<MonoStigmataFigure>().SetupView(this.itemDataBefore as StigmataDataItem);
         this._animationManager.AddAnimation(base.view.transform.Find("ItemPanel/StigmataIcon/Image").GetComponent<MonoAnimationinSequence>(), null);
     }
     else
     {
         base.view.transform.Find("ItemPanel/OtherIcon").gameObject.SetActive(true);
         base.view.transform.Find("ItemPanel/OtherIcon/Image").GetComponent<Image>().sprite = Miscs.GetSpriteByPrefab(this.itemDataAfter.GetImagePath());
         this._animationManager.AddAnimation(base.view.transform.Find("ItemPanel/OtherIcon/Image").GetComponent<MonoAnimationinSequence>(), null);
     }
     base.view.transform.Find("Result").GetComponent<Image>().sprite = Miscs.GetSpriteByPrefab("SpriteOutput/EquipPowerUpResult/Success" + MiscData.GetEquipPowerUpResultIndex(this.boostRate).ToString());
     this._animationManager.AddAnimation(base.view.transform.Find("Result").GetComponent<MonoAnimationinSequence>(), null);
     base.view.transform.Find("InfoRowLv").GetComponent<MonoEquipExpGrow>().SetData(this.itemDataBefore.level, this.itemDataBefore.GetMaxExp(), this.itemDataBefore.exp, this.itemDataAfter.exp, UIUtil.GetEquipmentMaxExpList(this.itemDataBefore, this.itemDataBefore.level, this.itemDataAfter.level));
     this._animationManager.AddAnimation(base.view.transform.Find("InfoRowLv").GetComponent<MonoAnimationinSequence>(), null);
     this._animationManager.StartPlay(starDelay, true);
 }