mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-10 20:15:53 +00:00
Interactable interface
This commit is contained in:
parent
49e58ff735
commit
54d9824581
27 changed files with 102 additions and 61 deletions
|
|
@ -16,7 +16,7 @@ public partial class Pickupper : Activable
|
|||
_inventoryManager = GetNode<InventoryManager>("/root/GameScene/InventoryManager");
|
||||
}
|
||||
|
||||
public override void Activate(ActivationType activationType = ActivationType.Toggle)
|
||||
public override bool Activate(ActivationType activationType = ActivationType.Toggle)
|
||||
{
|
||||
foreach (var item in LootTable)
|
||||
{
|
||||
|
|
@ -25,8 +25,8 @@ public partial class Pickupper : Activable
|
|||
|
||||
//inventoryManager.AddRedKeycard();
|
||||
//GetParent().QueueFree(); // TODO: send a signal instead
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue