public void AddSkill(PlayerSkill skill) { PlayerSkill copy = skill.CreateCopy(); skills.Add(copy); copy.Init(this); eSkillChange.Invoke(); }
public void ReplaceSkill(PlayerSkill addskill, PlayerSkill removeskill) { int index = skills.IndexOf(removeskill); Destroy(skills[index]); skills[index] = addskill.CreateCopy(); skills[index].Init(this); eSkillChange.Invoke(); }