コード例 #1
0
        private void ChangeState(GameObject obj, bool isIn)
        {
            this.Details.gameObject.SetActive(isIn);
            if (!isIn)
            {
                return;
            }
            PropViewSkillItem componentInParent = obj.GetComponentInParent <PropViewSkillItem>();

            this.ChangeSkillText((int)componentInParent.SkillEnum);
        }
コード例 #2
0
 private void Initialize()
 {
     this.bottomAnchor     = base.transform.parent.Find("BottomAnchor");
     this.skillItem        = Resources.Load <PropViewSkillItem>("Prefab/UI/Sacrificial/PropSkill");
     this.skillEffect      = Resources.Load <PropViewSkillEffect>("Prefab/UI/Sacrificial/PropSkillEffect");
     this.heroSkills       = base.transform.Find("HeroSkills");
     this.Details          = this.bottomAnchor.transform.Find("Panel/Details");
     this.Lv4              = this.Details.Find("LvContent/LvCount/Lv4");
     this.skillGrid        = this.heroSkills.Find("Skills").GetComponent <UIGrid>();
     this.skillEffectGrid  = this.Details.Find("LvContent/LvGrid").GetComponent <UIGrid>();
     this.skillName        = this.Details.Find("SkillName").GetComponent <UILabel>();
     this.passiveSkill     = this.Details.Find("Type/Passive").GetComponent <UILabel>();
     this.activeSkill      = this.Details.Find("Type/Active");
     this.transMana        = this.activeSkill.Find("Mana");
     this.coolDown         = this.activeSkill.Find("CoolDown/Content").GetComponent <UILabel>();
     this.typeRise         = this.activeSkill.Find("Mana").GetComponent <UILabel>();
     this.manaCost         = this.activeSkill.Find("Mana/Content").GetComponent <UILabel>();
     this.skillDescription = this.Details.Find("Description").GetComponent <UILabel>();
 }