Esempio n. 1
0
    public bool AddPerk(string perkName, string cardinalName)
    {
        if (partyBuilder.DemoPerkCount == 15)
        {
            StartCoroutine(UnitCreatorNotice(maxPartyNotice.gameObject));
            return(false);
        }
        partyBuilder.DemoPerkCount++;
        DictPerk dp = new DictPerk(perkName, cardinalName);

        unitPerkDict[dp] = true;
        fallBackPerkDesc = descriptionDict[perkName];
        perkText.text    = descriptionDict[perkName];
        UnitFactory.AddPerk(unit, cardinalName, perkName);
        ++UnitLevel;
        RefreshPerkTree();
        StatSheetPerkHover(perkName);
        RefreshStatSheet();
        return(true);
    }