mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:35:34 +00:00
Keycards
This commit is contained in:
parent
14893a544b
commit
ba46799911
7 changed files with 60 additions and 6 deletions
|
|
@ -3,9 +3,17 @@ using System;
|
|||
|
||||
public partial class Pickupper : 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