mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-20 15:23:47 +00:00
Chest animation, alarm box entity
This commit is contained in:
parent
f28a3b70fd
commit
164c186201
25 changed files with 177 additions and 23 deletions
|
|
@ -11,6 +11,9 @@ public partial class Chest3D : Interactable3D
|
|||
|
||||
[Export] public ChestState State = ChestState.Closed;
|
||||
|
||||
[Signal] public delegate void OpenChestEventHandler();
|
||||
[Signal] public delegate void CloseChestEventHandler();
|
||||
|
||||
public override bool Activate(ActivationType activationType = ActivationType.Toggle)
|
||||
{
|
||||
GD.Print("Attempting to open chest");
|
||||
|
|
@ -21,6 +24,7 @@ public partial class Chest3D : Interactable3D
|
|||
InventoryManager.Instance.AddItem(item);
|
||||
}
|
||||
|
||||
EmitSignalOpenChest();
|
||||
//_sprite.Play("Opening");
|
||||
State = ChestState.Open;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue