Example #1
0
    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Q))
        {
            MakeNewOrder();
        }
        if (Input.GetKeyDown(KeyCode.C))
        {
            m_orderList.CompleteOrder(666, true);
        }

        var delayedOrder = m_orderList.GetDelayedOrder();

        if (delayedOrder != null)
        {
            m_orderList.CompleteOrder(delayedOrder.Id, false);
            m_orders.RemoveAll(t => { return(t.Id == delayedOrder.Id); });
        }
    }