You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
436 B
17 lines
436 B
using Godot;
|
|
namespace Babushka.scripts.CSharp.Common.Inventory;
|
|
|
|
public partial class InventoryTestScript : Node
|
|
{
|
|
[Export(PropertyHint.ArrayType)]
|
|
private ItemResource[] _testItemsToCreate;
|
|
|
|
public override void _Ready()
|
|
{
|
|
foreach (var itemResource in _testItemsToCreate)
|
|
{
|
|
InventoryManager.Instance.CreateItem(itemResource, InventoryManager.Instance.playerInventory);
|
|
}
|
|
}
|
|
}
|