Пример #1
0
        public void pickWay(Way way)
        {
            this.currentWay = way;
            var skillRoot = new SkillTreeBuilder(this.skillDefinitionLoader)
                            .getSkillTree(way);

            Main.NewText(skillRoot.getSkill().name);
        }
Пример #2
0
 public void buildUI()
 {
     skillTreeUI = new SkillTreeUI();
     choiceUI    = new ChoiceUI(skillDefinitionLoader.getAllWays(), way =>
     {
         player.pickWay(way);
         var skillRoot = new SkillTreeBuilder(this.skillDefinitionLoader).getSkillTree(way);
         skillTreeUI.buildSkillTree(skillRoot, skill => { player.learnSkill(skill); });
         Main.NewText("You chave choosen your way, you will be wielder of:");
         Main.NewText(skillRoot.getSkill().displayName);
         showSkillTreeUI(player);
     });
     skillTreeInterface = new UserInterface();
     skillTreeInterface.SetState(skillTreeUI);
     currentUI = skillTreeUI;
 }