public void SetUpSimpleSkillDetail(Skill skill, CallBackWithSkill callBackWithSkill)
        {
            if (skill == null)
            {
                ClearSimpleSkillDetail();
            }

            this.skill = skill;

            this.callBackWithSkill = callBackWithSkill;

            skillNameText.text = skill.skillName;

            skillIcon.sprite = GameManager.Instance.gameDataCenter.allSkillSprites.Find(delegate(Sprite obj)
            {
                return(obj.name == skill.skillIconName);
            });

            skillIcon.enabled = true;

            skillLevelText.text = string.Format("技能等级: {0}", skill.skillLevel);
        }
        /// <summary>
        /// 初始化npc处的技能商品展示
        /// </summary>
        /// <param name="skill">Skill.</param>
        /// <param name="skillSelectCallBack">Skill select call back.</param>
        public void SetupSkillDetailInNPC(Skill skill, CallBackWithSkill skillSelectCallBack)
        {
            this.skill = skill;
            this.skillSelectCallBack = skillSelectCallBack;


            Sprite skillSprite = GameManager.Instance.gameDataCenter.allSkillSprites.Find(delegate(Sprite obj)
            {
                return(obj.name == skill.skillIconName);
            });

            skillIcon.sprite  = skillSprite;
            skillIcon.enabled = skillSprite != null;

            skillNameText.text = skill.skillName;

            learnNeedText.text = string.Format("要求: {0}个单词", skill.wordCountToLearn);

            //bool skillLearned = Player.mainPlayer.CheckSkillHasLearned(skill);

            //learnPrice.text = skill.price.ToString();
        }