Esempio n. 1
0
 public void SetSkill(Skill skill, Upgrade upgrade)
 {
     this.upgrade = upgrade;
     CurrentSkill = skill;
     gameObject.SetActive(true);
     Skill.image.sprite = SpriteHandler.GetSkillSprite(skill.type);
     Skill.onClick.AddListener(() => UpdateState());
     LevelUp.onClick.AddListener(() => UpdateState());
     UpdateState();
 }