Chest animation, alarm box entity

This commit is contained in:
Marco 2025-06-24 15:00:27 +02:00
commit 164c186201
25 changed files with 177 additions and 23 deletions

View file

@ -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;

View file

@ -0,0 +1,8 @@
using Godot;
namespace Cirno.Scripts.Components.Actors._3D;
public partial class ModelAnimation3D : Node
{
}

View file

@ -0,0 +1 @@
uid://dw1e13462567x