Пример #1
0
 public virtual void Dispose()
 {
     if (Model != null)
     {
         UIPool.Recycle(Model);
     }
     point--;
     if (buff[point] != null)
     {
         buff[point].index = index;
     }
     buff[index] = buff[point];
     buff[point] = null;
 }
Пример #2
0
 public override void Dispose()
 {
     if (pops != null)
     {
         for (int i = 0; i < pops.Count; i++)
         {
             pops[i].Dispose();
         }
     }
     pops.Clear();
     currentPop = null;
     if (Model != null)
     {
         Model.transform.SetParent(null);
         UIPool.Recycle(Model);
     }
     ClearUI();
 }