Ejemplo n.º 1
0
        /// <summary>
        /// 设置英雄头像
        /// </summary>
        /// <param name="UpGradeId"></param>
        /// <param name="icon"></param>
        /// <param name="char_type"></param>
        /// <param name="role_grade"></param>
        /// <param name="star"></param>
        /// <param name="heroLevel"></param>
        private void SetHeroIcon(string heroName, int UpGradeId, string icon, Hotfix_LT.Data.eRoleAttr char_type, int role_grade, int star, int heroLevel, string heroProfile, string profileSprite, int isawaken)
        {
            int quality  = 0;
            int addLevel = 0;

            LTPartnerDataManager.GetPartnerQuality(UpGradeId, out quality, out addLevel);
            if (addLevel == 0)
            {
                LTUIUtil.SetText(BreakLabel, "");
            }
            else
            {
                LTUIUtil.SetText(BreakLabel, "+" + addLevel.ToString());
            }
            BreakLabel.gameObject.SetActive(addLevel != 0);
            LTUIUtil.SetLevelText(HeroLevel.transform.parent.GetComponent <UISprite>(), HeroLevel, heroLevel);
            LTUIUtil.SetText(HeroName, heroName);
            LTUIUtil.SetText(HeroRoleProfile, string.Format("{0}", heroProfile == null ? EB.Localizer.GetString("ID_NATION_BATTLE_BUFF_FULL_CALL") : heroProfile));
            HeroRoleProfileSprite.spriteName = profileSprite;
            HeroIcon.spriteName       = icon;
            HeroType.spriteName       = LTPartnerConfig.LEVEL_SPRITE_NAME_DIC[char_type];
            HeroIconBorder.spriteName = LTPartnerConfig.OUT_LINE_SPRITE_NAME_DIC[quality];
            GameItemUtil.SetColorfulPartnerCellFrame(quality, HeriIconBorderBG);
            HotfixCreateFX.ShowUpgradeQualityFX(upgradeFx, HeroIconBorder.transform, quality, upgradeefclip);
            GradeIcon.spriteName = LTPartnerConfig.PARTNER_GRADE_SPRITE_NAME_DIC[(PartnerGrade)role_grade];
            HotfixCreateFX.ShowCharTypeFX(charFx, efClip, HeroType.transform, (PartnerGrade)role_grade, char_type);
            StarList.SetSrarList(star, isawaken);
        }
Ejemplo n.º 2
0
        private void SetFxObjAction(LTSpeedSnatchActiveItem item, Hotfix_LT.Data.eRoleAttr attr = Hotfix_LT.Data.eRoleAttr.None)
        {
            switch (attr)
            {
            case Hotfix_LT.Data.eRoleAttr.Feng:
            {
                item.FxFeng.CustomSetActive(true);
            }
            break;

            case Hotfix_LT.Data.eRoleAttr.Huo:
            {
                item.FxHuo.CustomSetActive(true);
            }
            break;

            case Hotfix_LT.Data.eRoleAttr.Shui:
            {
                item.FxShui.CustomSetActive(true);
            }
            break;

            default: {
                item.FxFeng.CustomSetActive(false);
                item.FxHuo.CustomSetActive(false);
                item.FxShui.CustomSetActive(false);
            } break;
            }
        }
Ejemplo n.º 3
0
 public void SetChoiceHeroType(Hotfix_LT.Data.eRoleAttr type)
 {
     choiceData.choiceType = type;
     // if (LTHeroBattleEvent.NotifyChoiceHeroType != null)
     // {
     //     LTHeroBattleEvent.NotifyChoiceHeroType(type);
     // }
 }
Ejemplo n.º 4
0
        public override void SetMenuData(object param)
        {
            base.SetMenuData(param);
            if (param != null)
            {
                m_ERoleAttr = (Hotfix_LT.Data.eRoleAttr)param;
            }

            switch (m_ERoleAttr)
            {
            case Hotfix_LT.Data.eRoleAttr.Feng:
                type = Hotfix_LT.Data.eRoleAttr.Feng;
                TitleSprite.spriteName = "Juexing_Icon_Fengzhishilian";
                TitleLabel.text        = EB.Localizer.GetString("ID_AWAKENDUNGEON_WIND");
                SetFx(0);
                break;

            case Hotfix_LT.Data.eRoleAttr.Shui:
                type = Hotfix_LT.Data.eRoleAttr.Shui;
                TitleSprite.spriteName = "Juexing_Icon_Shuizhishilian";
                TitleLabel.text        = EB.Localizer.GetString("ID_AWAKENDUNGEON_WATER");
                SetFx(1);
                break;

            case Hotfix_LT.Data.eRoleAttr.Huo:
            default:
                type = Hotfix_LT.Data.eRoleAttr.Huo;
                TitleSprite.spriteName = "Juexing_Icon_Huozhishilian";
                TitleLabel.text        = EB.Localizer.GetString("ID_AWAKENDUNGEON_FIRE");
                SetFx(2);
                break;
            }


            UpdateTopAwakeningItem();

            var temp = Hotfix_LT.Data.EventTemplateManager.Instance.GetAwakenDungeonsByType(type);

            DynamicScroll.SetItemDatas(temp.ToArray());

            int curShowSelectStage = LTAwakeningInstanceManager.Instance.GetMaxLayer(type);

            curShowSelectStage = Mathf.Min(curShowSelectStage + 1, temp.Count);

            var VS = DynamicScroll.scrollView.GetComponent <UIPanel>().GetViewSize();
            //最大可见的物品数量
            int ActinCount = (int)(VS.y / DynamicScroll.mDMono.transform.GetComponent <UIGrid>().cellHeight);
            int showStage  = Mathf.Min(curShowSelectStage - 1, temp.Count - 1 - ActinCount);

            DynamicScroll.MoveTo(showStage);

            if (curShowSelectStage == temp.Count)
            {
                DynamicScroll.MoveTo(showStage + 1);
            }
        }
Ejemplo n.º 5
0
 public override void SetMenuData(object param)
 {
     base.SetMenuData(param);
     Type = (Hotfix_LT.Data.eRoleAttr)param;
     RoleIcon.spriteName  = LTPartnerConfig.LEVEL_SPRITE_NAME_DIC[Type];
     TitleLabel.text      = EB.Localizer.GetString(string.Format("ID_HANDBOOK_TITLE_{0}", (int)Type));
     ATKTitleLabel.text   = EB.Localizer.GetString(string.Format("ID_HANDBOOK_ATK_{0}", (int)Type));
     DefTitleLabel.text   = EB.Localizer.GetString(string.Format("ID_HANDBOOK_DEF_{0}", (int)Type));
     MaxHPTitleLabel.text = EB.Localizer.GetString(string.Format("ID_HANDBOOK_MAXHP_{0}", (int)Type));
     UpLevelFx.CustomSetActive(false);
     InitHandbookPageInfo();
 }
Ejemplo n.º 6
0
        /// <summary>
        /// 设置克制箭头
        /// </summary>
        /// <param name="opponent_attr"></param>
        public void SetRestrainFlag(Hotfix_LT.Data.eRoleAttr opponent_attr)
        {
            restrainFlag.gameObject.CustomSetActive(true);

            if (Data.Limits.Contains("underRestrain"))
            {
                restrainFlag.color = cRestrainSpriteColor;
                return;
            }
            if (opponent_attr == this.Attr)
            {
                restrainFlag.color = cNoRestrainSpriteColor;
            }
            else
            {
                if (attr == Hotfix_LT.Data.eRoleAttr.Shui)
                {
                    if (opponent_attr == Hotfix_LT.Data.eRoleAttr.Huo)
                    {
                        restrainFlag.color = cBeRestrainSpriteColor;
                    }
                    else
                    {
                        restrainFlag.color = cRestrainSpriteColor;
                    }
                }
                else if (attr == Hotfix_LT.Data.eRoleAttr.Huo)
                {
                    if (opponent_attr == Hotfix_LT.Data.eRoleAttr.Feng)
                    {
                        restrainFlag.color = cBeRestrainSpriteColor;
                    }
                    else
                    {
                        restrainFlag.color = cRestrainSpriteColor;
                    }
                }
                else if (attr == Hotfix_LT.Data.eRoleAttr.Feng)
                {
                    if (opponent_attr == Hotfix_LT.Data.eRoleAttr.Shui)
                    {
                        restrainFlag.color = cBeRestrainSpriteColor;
                    }
                    else
                    {
                        restrainFlag.color = cRestrainSpriteColor;
                    }
                }
            }
        }
Ejemplo n.º 7
0
        public override void Awake()
        {
            base.Awake();

            var t = mDMono.transform;

            OpenTimeLabel = t.GetComponent <UILabel>("Desc/Time");
            MainTexture   = t.GetComponent <UISprite>("MainIcon");
            LockObj       = t.FindEx("Lock").gameObject;
            isLock        = false;
            fx            = t.Find("fx").gameObject;

            AwakeningInstanceType = (Hotfix_LT.Data.eRoleAttr)mDMono.IntParamList[0];
            t.GetComponent <UIButton>("MainIcon").onClick.Add(new EventDelegate(OnBtnClick));
        }
Ejemplo n.º 8
0
        public List <LTPartnerData> GetHandbookPartners(Hotfix_LT.Data.eRoleAttr handBookType, List <LTPartnerData> allPartners)
        {
            List <LTPartnerData> targetList = new List <LTPartnerData>();

            for (int i = 0; i < allPartners.Count; i++)
            {
                if (allPartners[i].HeroInfo.char_type == handBookType)
                {
                    if (allPartners[i].HeroId > 0)
                    {
                        targetList.Add(allPartners[i]);
                    }
                }
            }
            return(targetList);
        }
Ejemplo n.º 9
0
 public void RemoveWorldBossRollingMsg()
 {
     Hotfix_LT.Data.eRoleAttr attr = LTWorldBossDataManager.Instance.GetWorldBossIndex();
     if (attr == Hotfix_LT.Data.eRoleAttr.Huo)
     {
         RemoveRollingMsg(902299);//902299,902296,902297,火风水
     }
     else if (attr == Hotfix_LT.Data.eRoleAttr.Feng)
     {
         RemoveRollingMsg(902300);//902299,902296,902297,火风水
     }
     else if (attr == Hotfix_LT.Data.eRoleAttr.Shui)
     {
         RemoveRollingMsg(902301);//902299,902296,902297,火风水
     }
 }
Ejemplo n.º 10
0
        /// <summary>
        /// 获取世界boss属性。(注 1:风,2:水,3:火)
        /// </summary>
        /// <returns></returns>
        public Hotfix_LT.Data.eRoleAttr GetWorldBossIndex()
        {
            Hotfix_LT.Data.eRoleAttr attr = Hotfix_LT.Data.eRoleAttr.None;
            int monsterId = GetWorldBossMonsterID();

            if (monsterId > 0)
            {
                int index = monsterId % 10;
                attr = (Hotfix_LT.Data.eRoleAttr)index;
            }
            else
            {
                EB.Debug.Log("LTWorldBossDataManager GetWorldBossIndex monsterId : {0}", monsterId);
            }

            return(attr);
        }
Ejemplo n.º 11
0
        static public List <HeroBattleChoiceCellData> GetHeroListByAttr(Hotfix_LT.Data.eRoleAttr type)
        {
            List <HeroBattleChoiceCellData> listCellData = new List <HeroBattleChoiceCellData>();

            Hotfix_LT.Data.HeroStatTemplate[] allPartnerCollection = Hotfix_LT.Data.CharacterTemplateManager.Instance.GetHeroStats();
            for (var i = 0; i < allPartnerCollection.Length; i++)
            {
                var heroTpl = allPartnerCollection[i];
                Hotfix_LT.Data.HeroInfoTemplate heroInfo = Hotfix_LT.Data.CharacterTemplateManager.Instance.GetHeroInfo(heroTpl.character_id);
                if (heroInfo.char_type == type && heroInfo.isShowInClash)
                {
                    HeroBattleChoiceCellData choiceCell = new HeroBattleChoiceCellData(heroTpl.id, heroInfo, 0);
                    listCellData.Add(choiceCell);
                }
            }
            return(listCellData);
        }
Ejemplo n.º 12
0
        private void SetBookNameBg(Hotfix_LT.Data.eRoleAttr type, UISprite Bg)
        {
            if (Bg == null)
            {
                EB.Debug.LogError("Hero Type Icon Set Error");
                return;
            }

            float ColorR = 255;
            float ColorG = 255;
            float ColorB = 255;
            float ColorA = 1;

            switch (type)
            {
            case Hotfix_LT.Data.eRoleAttr.Feng:
                ColorR = 66;
                ColorG = 254;
                ColorB = 121;
                Bg.gameObject.CustomSetActive(true);
                break;

            case Hotfix_LT.Data.eRoleAttr.Shui:
                ColorR = 51;
                ColorG = 178;
                ColorB = 255;
                Bg.gameObject.CustomSetActive(true);
                break;

            case Hotfix_LT.Data.eRoleAttr.Huo:
                ColorR = 255;
                ColorG = 102;
                ColorB = 153;
                Bg.gameObject.CustomSetActive(true);
                break;

            default:
                ColorR = 255;
                ColorG = 255;
                ColorB = 255;
                Bg.gameObject.CustomSetActive(false);
                break;
            }
            Bg.color = new Color(ColorR / 255, ColorG / 255, ColorB / 255, ColorA);
        }
Ejemplo n.º 13
0
        public void AddWorldBossRollingMsg()
        {
            if (isInitWorldBossRoll)
            {
                return;
            }

            //世界boss开始
            Hotfix_LT.Data.eRoleAttr attr = LTWorldBossDataManager.Instance.GetWorldBossIndex();

            if (attr == Hotfix_LT.Data.eRoleAttr.None)
            {
                return;
            }

            if (attr == Hotfix_LT.Data.eRoleAttr.Huo)
            {
                m_activityRollingMsgManager.AddRollingMsgActivity(902295, "world_boss_start");//902295,902296,902297,火风水
            }
            else if (attr == Hotfix_LT.Data.eRoleAttr.Feng)
            {
                m_activityRollingMsgManager.AddRollingMsgActivity(902296, "world_boss_start");//902295,902296,902297,火风水
            }
            else if (attr == Hotfix_LT.Data.eRoleAttr.Shui)
            {
                m_activityRollingMsgManager.AddRollingMsgActivity(902297, "world_boss_start");//902295,902296,902297,火风水
            }

            //世界boss结束
            if (attr == Hotfix_LT.Data.eRoleAttr.Huo)
            {
                m_activityRollingMsgManager.AddRollingMsgActivity(902299, "world_boss_stop");//902299,902296,902297,火风水
            }
            else if (attr == Hotfix_LT.Data.eRoleAttr.Feng)
            {
                m_activityRollingMsgManager.AddRollingMsgActivity(902300, "world_boss_stop");//902299,902296,902297,火风水
            }
            else if (attr == Hotfix_LT.Data.eRoleAttr.Shui)
            {
                m_activityRollingMsgManager.AddRollingMsgActivity(902301, "world_boss_stop");//902299,902296,902297,火风水
            }

            isInitWorldBossRoll = true;
        }
Ejemplo n.º 14
0
        /// <summary> 获取首个可选择的英雄 </summary>
        /// <param name="type"></param>
        /// <returns></returns>
        public HeroBattleChoiceCellData GetFirstChoiceHero(Hotfix_LT.Data.eRoleAttr type)
        {
            if (!choiceData.dicHeroChoiceData.ContainsKey(type))
            {
                EB.Debug.LogError("HeroBattleModel no Init or dont find type ={0}", type);
                return(null);
            }

            List <HeroBattleChoiceCellData> list = choiceData.dicHeroChoiceData[type];

            for (int i = 0; i < list.Count; i++)
            {
                if (list[i].IsCanChoiceUse())
                {
                    return(list[i]);
                }
            }
            return(null);
        }
Ejemplo n.º 15
0
        private void SetFilledState()
        {
            Hotfix_LT.Data.eRoleAttr type  = Data.PartnerData.HeroInfo.char_type;
            PartnerGrade             grade = (PartnerGrade)Data.PartnerData.HeroInfo.role_grade;
            int star       = Data.PartnerData.Star;
            int awakelevel = Data.PartnerData.IsAwaken;

            TextureCamp.spriteName = Data.PartnerData.HeroInfo.skin;
            AttrSprite.spriteName  = LTPartnerConfig.LEVEL_SPRITE_NAME_DIC[type];
            HotfixCreateFX.ShowCharTypeFX(charFx, efClip, AttrSprite.transform, grade, type);
            GradeSprite.spriteName = LTPartnerConfig.PARTNER_GRADE_SPRITE_NAME_DIC[grade];

            for (int i = 0; i < StarGrid.transform.childCount; i++)
            {
                StarGrid.transform.GetChild(i).gameObject.CustomSetActive(i < star);
                starSpArray[i].spriteName = LTPartnerConfig.PARTNER_AWAKN_STAR_DIC[awakelevel];
            }
            StarGrid.repositionNow = true;
            URBorder.CustomSetActive(grade == PartnerGrade.UR);
            SSRBorder.CustomSetActive(grade == PartnerGrade.SSR);
            SRBorder.CustomSetActive(grade == PartnerGrade.SR);
            RBorder.CustomSetActive(grade == PartnerGrade.R);
        }
Ejemplo n.º 16
0
 private void ShowAttrFlag(Hotfix_LT.Data.eRoleAttr attr)
 {
     AttrRenderer.spriteName = LTPartnerConfig.LEVEL_SPRITE_NAME_DIC[attr];
 }
Ejemplo n.º 17
0
        public void AwakeningSetting(int num, Hotfix_LT.Data.eRoleAttr sRoleAttr, int unitValue = 50, string name = default, string format = default)
        {
            LTUIUtil.SetText(AttrAddNumLabel_Subs, num.ToString());
            LTUIUtil.SetText(AttrAddNumLabel2_Subs, num.ToString());
            string totalFormat = string.Empty;


            switch (sRoleAttr)
            {
            case Hotfix_LT.Data.eRoleAttr.Feng:
                // icon
                AttrAddSprite.spriteName  = "Juexing_Shuxing_Feng_1";
                AttrAddSprite2.spriteName = "Juexing_Shuxing_Feng_1";
                // name
                LTUIUtil.SetText(AttrAddNameLabel_Subs, string.IsNullOrEmpty(name) ? Localizer.GetString("ID_JUEXING_SHUXING_FENG") : name);
                LTUIUtil.SetText(AttrAddNameLabel2_Subs, string.IsNullOrEmpty(name) ? Localizer.GetString("ID_JUEXING_SHUXING_FENG") : name);
                // desc
                LTUIUtil.SetText(WindowMid_Subs, string.IsNullOrEmpty(format) ? Localizer.GetString("ID_JUEXING_DAMAGE_EVERY_FENG") : string.Format(format, unitValue));
                // num
                WindowBottom1.text = string.Format(Localizer.GetString("ID_JUEXING_DAMAGE_NUM_FENG"), num);
                // total value
                totalFormat        = string.IsNullOrEmpty(format) ? "ID_JUEXING_DAMAGE_ADD_FENG" : "ID_BOSSCHALLENGE_REWARD_ADD";
                WindowBottom2.text = string.Format(Localizer.GetString(totalFormat), num * unitValue);
                // show
                mDMono.gameObject.CustomSetActive(true);
                break;

            case Hotfix_LT.Data.eRoleAttr.Shui:
                AttrAddSprite.spriteName  = "Juexing_Shuxing_Shui_1";
                AttrAddSprite2.spriteName = "Juexing_Shuxing_Shui_1";

                LTUIUtil.SetText(AttrAddNameLabel_Subs, string.IsNullOrEmpty(name) ? Localizer.GetString("ID_JUEXING_SHUXING_SHUI") : name);
                LTUIUtil.SetText(AttrAddNameLabel2_Subs, string.IsNullOrEmpty(name) ? Localizer.GetString("ID_JUEXING_SHUXING_SHUI") : name);

                LTUIUtil.SetText(WindowMid_Subs, string.IsNullOrEmpty(format) ? Localizer.GetString("ID_JUEXING_DAMAGE_EVERY_SHUI") : string.Format(format, unitValue));
                WindowBottom1.text = string.Format(Localizer.GetString("ID_JUEXING_DAMAGE_NUM_SHUI"), num);

                totalFormat        = string.IsNullOrEmpty(format) ? "ID_JUEXING_DAMAGE_ADD_SHUI" : "ID_BOSSCHALLENGE_REWARD_ADD";
                WindowBottom2.text = string.Format(Localizer.GetString(totalFormat), num * unitValue);

                mDMono.gameObject.CustomSetActive(true);
                break;

            case Hotfix_LT.Data.eRoleAttr.Huo:
                AttrAddSprite.spriteName  = "Juexing_Shuxing_Huo_1";
                AttrAddSprite2.spriteName = "Juexing_Shuxing_Huo_1";

                LTUIUtil.SetText(AttrAddNameLabel_Subs, string.IsNullOrEmpty(name) ? Localizer.GetString("ID_JUEXING_SHUXING_HUO") : name);
                LTUIUtil.SetText(AttrAddNameLabel2_Subs, string.IsNullOrEmpty(name) ? Localizer.GetString("ID_JUEXING_SHUXING_HUO") : name);

                LTUIUtil.SetText(WindowMid_Subs, string.IsNullOrEmpty(format) ? Localizer.GetString("ID_JUEXING_DAMAGE_EVERY_HUO") : string.Format(format, unitValue));
                WindowBottom1.text = String.Format(Localizer.GetString("ID_JUEXING_DAMAGE_NUM_HUO"), num);

                totalFormat        = string.IsNullOrEmpty(format) ? "ID_JUEXING_DAMAGE_ADD_HUO" : "ID_BOSSCHALLENGE_REWARD_ADD";
                WindowBottom2.text = String.Format(Localizer.GetString(totalFormat), num * unitValue);

                mDMono.gameObject.CustomSetActive(true);
                break;

            default:
                mDMono.gameObject.CustomSetActive(false);
                break;
            }
        }
Ejemplo n.º 18
0
 public void SetType(Hotfix_LT.Data.eRoleAttr e)
 {
     Type            = e;
     Icon.spriteName = LTPartnerConfig.LEVEL_SPRITE_NAME_DIC[Type];
 }
Ejemplo n.º 19
0
        public HandbookData Find(Hotfix_LT.Data.eRoleAttr HandbookId)
        {
            HandbookData item = Handbooks.Where(m => m.HandbookId == HandbookId).FirstOrDefault();

            return(item);
        }
Ejemplo n.º 20
0
 public void Remove(Hotfix_LT.Data.eRoleAttr HandbookId)
 {
     Handbooks.RemoveAll(m => m.HandbookId == HandbookId);
 }
Ejemplo n.º 21
0
 /// <summary>
 /// 设置克制箭头
 /// </summary>
 /// <param name="attr"></param>
 public void SetRestrainFlag(Hotfix_LT.Data.eRoleAttr attr)
 {
     m_healthBar.SetRestrainFlag(attr);
 }
Ejemplo n.º 22
0
        public static ParticleSystemUIComponent ShowCharTypeFX(ParticleSystemUIComponent typeFX, EffectClip effectClip, Transform parentTf, PartnerGrade grade, Hotfix_LT.Data.eRoleAttr charType, int waitFrame = 0)
        {
            if ((int)grade < (int)PartnerGrade.SSR)
            {
                if (typeFX != null)
                {
                    typeFX.gameObject.CustomSetActive(false);
                }
                else
                {
                    if (parentTf.Find("TypeFX") != null)
                    {
                        parentTf.Find("TypeFX").gameObject.CustomSetActive(false);
                    }
                }
                return(typeFX);
            }

            if (typeFX == null)
            {
                if (parentTf.Find("TypeFX") == null)
                {
                    GameObject obj = new GameObject("TypeFX");
                    obj.transform.SetParent(parentTf);
                    obj.transform.localPosition    = Vector3.zero;
                    obj.transform.localEulerAngles = Vector3.zero;
                    obj.transform.localScale       = Vector3.one;
                    effectClip = obj.AddComponent <EffectClip>();
                    typeFX     = obj.AddComponent <ParticleSystemUIComponent>();

                    UIPanel panel = parentTf.GetComponentInParentEx <UIPanel>();

                    if (panel != null)
                    {
                        typeFX.panel = panel;
                    }

                    typeFX.sortingOrderOffset = 1;
                    NGUITools.SetLayer(typeFX.gameObject, parentTf.gameObject.layer);
                }
                else
                {
                    typeFX     = parentTf.Find("TypeFX").GetComponent <ParticleSystemUIComponent>();
                    effectClip = parentTf.Find("TypeFX").GetComponent <EffectClip>();
                }
            }

            typeFX.gameObject.CustomSetActive(false);
            string fxName = null;

            switch (charType)
            {
            case Hotfix_LT.Data.eRoleAttr.Shui:
            {
                fxName = "fx_ui_touxiang_ShuiFX";
            }; break;

            case Hotfix_LT.Data.eRoleAttr.Huo:
            {
                fxName = "fx_ui_touxiang_HuoFX";
            }; break;

            case Hotfix_LT.Data.eRoleAttr.Feng:
            {
                fxName = "fx_ui_touxiang_FengFX";
            }; break;
            }
            typeFX.needFXScaleMode = true;
            typeFX.fx            = GetQualityFx(parentTf, fxName);
            typeFX.WaitFrame     = waitFrame;
            typeFX.playOnEnable  = true;
            typeFX.stopOnDisable = true;
            typeFX.gameObject.CustomSetActive(true);

            return(typeFX);
        }
Ejemplo n.º 23
0
 void OnChangeHeroType(Hotfix_LT.Data.eRoleAttr type)
 {
     LTHeroBattleModel.GetInstance().SetChoiceHeroType(type);
 }