Example #1
0
        public void SetData(SkillOperateData data)
        {
            this.data = data;
            data.LoadIcon(OnLoadSkillIcon);
            data.LoadVSHeadIcon(OnLoadHeroIcon);

//			nameText.text =data.skillConfig.skillId + data.skillConfig.name;
            nameText.text = "";
        }
Example #2
0
        void Update()
        {
            if (_skillData != skillData)
            {
                _skillData = skillData;

                if (_skillData != null)
                {
                    skillData.LoadIcon(OnLoadIcon);

                    skillName.text        = skillData.skillConfig.name;
                    skillDescription.text = skillData.skillConfig.description;
                }
            }
        }
Example #3
0
 public void SetData(SkillOperateData data)
 {
     this.data = data;
     data.LoadIcon(OnLoadSkillIcon);
     data.LoadVSHeadIcon(OnLoadHeroIcon);
 }