mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:35:34 +00:00
19 lines
346 B
C#
19 lines
346 B
C#
using Godot;
|
|
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();
|
|
}
|
|
}
|