public void NewTree(string tName) { //OnOldSkillWillBeDestroyed?.Invoke(skillTree); skillTree = new SkillTree(tName); skillTree.TreeName = tName; OnNewSkillTreeCreated?.Invoke(skillTree); }
public void LoadTree(Skill[] loadedTree, string tName) { //OnOldSkillWillBeDestroyed?.Invoke(skillTree); skillTree = new SkillTree(tName, false); skillTree.ResetTree(loadedTree); skillTree.TreeName = tName; OnNewSkillTreeCreated?.Invoke(skillTree); }