// Use this for initialization void Awake() { while (abilities.Count < 5) { abilities.Add(null); abilityLevels.Add(0); abilityXP.Add(0); } // get a reference to the level up skills button levelUpButton = FindObjectOfType <LevelUpSkillsButton>(); // set the number of unlocked slots numberOfUnlockedSlots = SpecialisedAbilityManager.getNumberOfSpecialisationSlots(GetComponent <CharacterStats>().level); }
// Use this for initialization void Start() { levelUpSkillsButton = FindObjectOfType <LevelUpSkillsButton>(); }