| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 | using Core.Language;using Excel2Json;using GameLogic.Hero;using Utility;namespace Fort23.Mono{    [UIBinding(prefab = "FaBaoSkillWidget")]    public partial class FaBaoSkillWidget : UIComponent    {        private void Init()        {        }        public override void AddEvent()        {        }        public override void DelEvent()        {        }        public override void AddButtonEvent()        {        }        public void CustomInit(FaBaoInfo currentFabaoInfo, FaBaoInfo fabaoInfo)        {            Text_Level.text = fabaoInfo.FabaoPowerupConfig.ID + "级";            Text_Desc.text = UtilTools.GetString(LanguageManager.Instance.Text(fabaoInfo.SkillConfig.PromoteLan), fabaoInfo.SkillConfig.PromoteLanPara);            if (currentFabaoInfo.FabaoPowerupConfig.ID + 1 == fabaoInfo.FabaoPowerupConfig.ID)            {                Icon_CurrentUpGrade.gameObject.SetActive(true);            }            else            {                Icon_CurrentUpGrade.gameObject.SetActive(false);            }                        if (currentFabaoInfo.FabaoPowerupConfig.ID >= fabaoInfo.FabaoPowerupConfig.ID)            {                Text_Desc.transform.RecoverColor();                Text_Level.transform.RecoverColor();            }            else            {                Text_Level.transform.Gray();                Text_Desc.transform.Gray();            }        }    }}
 |