Esempio n. 1
0
        private void LoadSkillsInfo(BaseStats charInfo)
        {
            foreach (Transform child in skillPanel.transform)
            {
                Destroy(child.gameObject);
            }

            foreach (SkillConfig skill in charInfo.GetAllAvailableSkills())
            {
                var skillUI = Instantiate(skillPrefab, transform);
                skillUI.transform.parent = skillPanel.transform;
                skillUI.Setup(skill);
            }
        }