Esempio n. 1
0
    // Renames the character.
    public void RenameClick()
    {
        CharsheetUIManager m = UIManager.GetComponent <CharsheetUIManager>();

        m.RenameActiveCharacter(InputBox.GetComponent <Text>().text);
        PartyIndicator toUpdate = (PartyIndicator)FindObjectOfType(typeof(PartyIndicator));

        toUpdate.PartyCompositionChanged();
    }
Esempio n. 2
0
    public void Recruit()
    {
        if (PlayerParty.gold < 15)
        {
            NotificationPopupSystem.PopupText("Not enough gold");
            return;
        }
        if (PlayerParty.partyMembers.Count >= Constants.MAX_PARTY_SIZE)
        {
            NotificationPopupSystem.PopupText("Party already full");
            return;
        }
        PlayerParty.AddToParty(characterClass);
        PlayerParty.gold -= 15;
        PartyIndicator toUpdate = (PartyIndicator)FindObjectOfType(typeof(PartyIndicator));

        toUpdate.PartyCompositionChanged();
    }