Beispiel #1
0
 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();
 }
Beispiel #2
0
 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();
 }