private void OnMax() { if (this.mCacheExpItemList == null || this.mCacheExpItemList.Count < 0) { return; } for (int index = 0; index < this.mItems.Count; ++index) { UnitLevelUpListItem component = (UnitLevelUpListItem)this.mItems[index].GetComponent <UnitLevelUpListItem>(); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)component, (UnityEngine.Object)null)) { component.Reset(); } } this.CalcCanUnitLevelUpMax(); }
private void OnCancel() { if (this.mSelectExpItems.Count <= 0) { return; } for (int index = 0; index < this.mItems.Count; ++index) { UnitLevelUpListItem component = (UnitLevelUpListItem)this.mItems[index].GetComponent <UnitLevelUpListItem>(); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)component, (UnityEngine.Object)null)) { component.Reset(); } } this.mSelectExpItems.Clear(); this.RefreshFinishedStatus(); }