Ejemplo n.º 1
0
 public void AddSpell()
 {
     if (CurrentCharacter != null)
     {
         ModalManager.Display("Enter the name of your new spell", "Enter name...", "Confirm", (spellName) =>
         {
             CurrentCharacter.Spells.Add(new Spell()
             {
                 Name = spellName,
             });
             ModifyGold(15);
             DisplayInformationCharacter();
             SaveTeams();
         });
     }
 }
Ejemplo n.º 2
0
 public void AddCharacter()
 {
     ModalManager.Display($"Do you want to create a new character {Environment.NewLine} or {Environment.NewLine} use an already created template",
                          "Create new character", () =>
     {
         ModalManager.Display("Please enter the name of your new character", "Enter name...", "Confirm", (name) =>
         {
             CurrentTeam.Characters.Add(new Character.Player()
             {
                 Name = name
             });
             ModifyGold(50);
             DisplayCharacters();
             SaveTeams();
         });
     }, "Use template", () =>
     {
         Debug.Log("Asking for templates");
     });
 }