Dialogue system; ask user if they want to teleport to next floor
This commit is contained in:
@@ -104,6 +104,7 @@ public partial class InventoryMenu : Control, IInventoryMenu
|
||||
if (Input.IsActionJustPressed(GameInputs.Throw))
|
||||
{
|
||||
var selectedMenuItem = ItemList.GetChild<ItemLabel>(_currentSelection);
|
||||
GameRepo.InventoryItems.Value.Remove(selectedMenuItem.InventoryItem);
|
||||
ItemList.RemoveChild(selectedMenuItem);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user