mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-09 19:05:53 +00:00
Chests and strafing speed
This commit is contained in:
parent
0ccc272ada
commit
b645e1724e
17 changed files with 286 additions and 21 deletions
18
Scripts/Chest.cs
Normal file
18
Scripts/Chest.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
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();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue