private void OnOrderRemoved(Order obj) { Order_UI order = orders.FirstOrDefault(x => x.currentOrder == obj); order_UIPool.Return(order); orders.Remove(order); }
private void OnOrderAdded(Order obj) { Order_UI order = (Order_UI)order_UIPool.Request(); order.SetOrder(obj); orders.Add(order); order.transform.SetParent(ordersParent, false); }