public ItemEventArgs(ItemInfo itemInfo) { this.Item = itemInfo; }
private void OnItemAdded(ItemInfo itemAdded) { ItemEventArgs itemEventArgs = new ItemEventArgs(itemAdded); ItemPicked?.Invoke(this, itemEventArgs); }
private void OnItemEquipped(ItemInfo itemEquipped) { ItemEventArgs itemEventArgs = new ItemEventArgs(itemEquipped); ItemEquipped?.Invoke(this, itemEventArgs); }
private void UseEquippedItem(ItemInfo equippedItem) { equippedItem.IsUsed = true; OnItemUsed(equippedItem); }