private void OnOrderRemoved(Order obj) { Order_UI order = orders.FirstOrDefault(x => x.currentOrder == obj); order_UIPool.Return(order); orders.Remove(order); }
public override void OnReturn() { for (int i = 0; i < itemImages.Count; i++) { itemImagePool.Return(itemImages[i]); } itemImages.Clear(); currentOrder = null; }