SupaLidlGame/Items/PlayerInventory.cs

18 lines
376 B
C#
Raw Normal View History

2024-01-01 22:55:53 -08:00
namespace SupaLidlGame.Items;
public partial class PlayerInventory : Inventory
{
public override bool EquipIndex(int index)
{
bool result = base.EquipIndex(index);
if (result)
{
Events.EventBus.Instance.EmitSignal(
Events.EventBus.SignalName.PlayerInventoryUpdate, this);
}
return result;
}
}