public void UpdatePhysicalSkillsMenu(IEnumerable <SkillAttack> skills) { m_PhysicalSkillsMenu.Clear(); foreach (var uiForSkill in m_PhysicalSkillsMenu.GenerateElements <SkillAttack, SkillUI>(skills)) { var skill = uiForSkill.Key; var ui = uiForSkill.Value; ui.MP = 0; ui.Name = skill.Name; ui.Icon = skill.Icon; } }
public void UpdateMagicSkillsMenu(IEnumerable <SkillMagic> skills) { m_MagicSkillsMenu.Clear(); foreach (var uiForSkill in m_MagicSkillsMenu.GenerateElements <SkillMagic, SkillUI>(skills)) { var skill = uiForSkill.Key; var ui = uiForSkill.Value; ui.MP = skill.MpCost; ui.Name = skill.Name; ui.Icon = skill.Icon; } }