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; }
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(); }