mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
18 lines
No EOL
389 B
C#
18 lines
No EOL
389 B
C#
namespace Cirno.Scripts;
|
|
|
|
public partial class Chest : Activable
|
|
{
|
|
private InventoryManager inventoryManager;
|
|
|
|
|
|
public override void _Ready()
|
|
{
|
|
inventoryManager = GetNode<InventoryManager>("/root/GameScene/InventoryManager");
|
|
}
|
|
|
|
public override void Activate()
|
|
{
|
|
inventoryManager.AddRedKeycard();
|
|
GetParent().QueueFree();
|
|
}
|
|
} |