Beispiel #1
0
    public ItemSlotBehavior(WidgetBase slotWidget,
                            Func <GameObject> currentItemSupplier,
                            Func <GameObject> actingCritterSupplier)
    {
        _slotWidget            = slotWidget;
        _currentItemSupplier   = currentItemSupplier;
        _actingCritterSupplier = actingCritterSupplier;

        slotWidget.SetMouseMsgHandler(HandleMouseMessage);
        slotWidget.SetWidgetMsgHandler(HandleWidgetMessage);
    }