public void Setup(SkillAbilityDeriveParam skillAbilityDeriveParam) { this.m_ViewContentSkillParams = SkillAbilityDeriveListItem.CreateViewContentSkillParams(skillAbilityDeriveParam.SkillDeriveParams); this.m_ViewContentAbilityParams = SkillAbilityDeriveListItem.CreateViewContentAbilityParams(skillAbilityDeriveParam.AbilityDeriveParams); using (List <SkillAbilityDeriveListItem.ViewContentSkillParam> .Enumerator enumerator = this.m_ViewContentSkillParams.GetEnumerator()) { while (enumerator.MoveNext()) { this.CreateListItem(enumerator.Current); } } using (List <SkillAbilityDeriveListItem.ViewContentAbilityParam> .Enumerator enumerator = this.m_ViewContentAbilityParams.GetEnumerator()) { while (enumerator.MoveNext()) { this.CreateListItem(enumerator.Current); } } this.UpdateUIActive(); }
public void Setup(SkillAbilityDeriveData skillAbilityDeriveData) { List <SkillDeriveParam> skillDeriveParams = skillAbilityDeriveData.GetAvailableSkillDeriveParams(); List <AbilityDeriveParam> abilityDeriveParams = skillAbilityDeriveData.GetAvailableAbilityDeriveParams(); this.m_ViewContentSkillParams = SkillAbilityDeriveListItem.CreateViewContentSkillParams(skillDeriveParams); this.m_ViewContentAbilityParams = SkillAbilityDeriveListItem.CreateViewContentAbilityParams(abilityDeriveParams); using (List <SkillAbilityDeriveListItem.ViewContentSkillParam> .Enumerator enumerator = this.m_ViewContentSkillParams.GetEnumerator()) { while (enumerator.MoveNext()) { this.CreateListItem(enumerator.Current); } } using (List <SkillAbilityDeriveListItem.ViewContentAbilityParam> .Enumerator enumerator = this.m_ViewContentAbilityParams.GetEnumerator()) { while (enumerator.MoveNext()) { this.CreateListItem(enumerator.Current); } } this.UpdateUIActive(); }