Пример #1
0
    public void HandleItemDiscardedEvent(SessionEvent sessionEvent)
    {
        if (player.NodePath().ToString() != sessionEvent.args[0])
        {
            return;
        }

        InventoryMenu invMenu = activeMenu as InventoryMenu;

        if (invMenu == null)
        {
            return;
        }

        invMenu.RefreshInventory();
    }