Files
Babushka/scripts/CSharp/Common/Inventory/InventoryTestScript.cs
T

17 lines
436 B
C#
Raw Normal View History

2025-04-07 02:10:59 +02:00
using Godot;
namespace Babushka.scripts.CSharp.Common.Inventory;
public partial class InventoryTestScript : Node
{
2025-05-20 19:48:49 +02:00
[Export(PropertyHint.ArrayType)]
private ItemResource[] _testItemsToCreate;
2025-04-07 02:10:59 +02:00
public override void _Ready()
{
2025-05-20 19:48:49 +02:00
foreach (var itemResource in _testItemsToCreate)
{
InventoryManager.Instance.CreateItem(itemResource, InventoryManager.Instance.playerInventory);
}
2025-04-07 02:10:59 +02:00
}
}