mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-07 16:35:54 +00:00
Keycards fix
This commit is contained in:
parent
2be069eab4
commit
91fcd73688
7 changed files with 46 additions and 16 deletions
|
|
@ -16,7 +16,7 @@ public partial class AreaTrigger : Area2D
|
|||
[Signal]
|
||||
public delegate void ActivatedEventHandler();
|
||||
|
||||
public bool Activate(InteractionController player)
|
||||
private bool Activate()
|
||||
{
|
||||
if (_activations == 0 && DoNotActivateOnFirst)
|
||||
{
|
||||
|
|
@ -47,6 +47,6 @@ public partial class AreaTrigger : Area2D
|
|||
private void _on_area_entered(Area2D area)
|
||||
{
|
||||
if (area is not InteractionController player) return;
|
||||
Activate(player);
|
||||
Activate();
|
||||
}
|
||||
}
|
||||
|
|
@ -15,7 +15,7 @@ public partial class ItemPickup : Interactable
|
|||
if (!MeetsRequirements()) return false;
|
||||
foreach (var item in LootTable)
|
||||
{
|
||||
_inventoryManager.AddItem(item);
|
||||
InventoryManager.Instance.AddItem(item);
|
||||
}
|
||||
|
||||
// Delet This
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue