18 lines
690 B
C#
18 lines
690 B
C#
|
|
using Godot;
|
||
|
|
namespace Babushka.scripts.CSharp.Common.Inventory;
|
||
|
|
|
||
|
|
public partial class InventoryTestScript : Node
|
||
|
|
{
|
||
|
|
[Export]
|
||
|
|
private ItemResource _testItemToCreate;
|
||
|
|
|
||
|
|
public override void _Ready()
|
||
|
|
{
|
||
|
|
InventoryManager.Instance.CreateItem(_testItemToCreate, InventoryManager.Instance.playerInventory);
|
||
|
|
InventoryManager.Instance.CreateItem(_testItemToCreate, InventoryManager.Instance.playerInventory);
|
||
|
|
InventoryManager.Instance.CreateItem(_testItemToCreate, InventoryManager.Instance.playerInventory);
|
||
|
|
InventoryManager.Instance.CreateItem(_testItemToCreate, InventoryManager.Instance.playerInventory);
|
||
|
|
GD.Print("Added items");
|
||
|
|
}
|
||
|
|
}
|