Ejemplo n.º 1
0
    void Destroy()
    {
        OrderSlot_v1 OrderSlot = GetComponentInChildren <OrderSlot_v1>();

        if (OrderSlot != null)
        {
            OrderSlot.onOrderInserted -= HandleOrderInserted;
            OrderSlot.onOrderRemoved  -= HandleOrderRemoved;
        }
        else
        {
            Debug.Log("No Order Slot associated with the Order Visualizer");
        }
    }
Ejemplo n.º 2
0
    void Awake()
    {
        OrderSlot_v1 OrderSlot = GetComponentInChildren <OrderSlot_v1>();

        if (OrderSlot != null)
        {
            OrderSlot.onOrderInserted += HandleOrderInserted;
            OrderSlot.onOrderRemoved  += HandleOrderRemoved;
        }
        else
        {
            Debug.Log("No Order Slot associated with the Order Visualizer");
        }

        GetComponentInChildren <ButtonInteractable_v1>().OnButtonRelease += HandleButtonClick;
    }