Beispiel #1
0
        public void Refresh()
        {
            skills = entity.GetSkills().ToArray();
            int i = 0;

            foreach (Skill skill in skills)
            {
                if (skill == null)
                {
                    slots[i].Hide();
                    i++;
                    continue;
                }
                slots[i].Show();
                slots[i].Disabled = !skill.condition.IsValid();
                slots[i].Configure(skill, (i + 1).ToString());
                i++;
            }
            while (i < 5)
            {
                slots[i].Hide();
                i++;
            }
        }