예제 #1
0
    public void AddSkill(PlayerSkill skill)
    {
        PlayerSkill copy = skill.CreateCopy();

        skills.Add(copy);
        copy.Init(this);
        eSkillChange.Invoke();
    }
예제 #2
0
    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();
    }