Exemple #1
0
    private void OnOrderRemoved(Order obj)
    {
        Order_UI order = orders.FirstOrDefault(x => x.currentOrder == obj);

        order_UIPool.Return(order);
        orders.Remove(order);
    }
Exemple #2
0
    public override void OnReturn()
    {
        for (int i = 0; i < itemImages.Count; i++)
        {
            itemImagePool.Return(itemImages[i]);
        }

        itemImages.Clear();
        currentOrder = null;
    }