mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-13 04:15:54 +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;
|
||||
|
||||
|
|
|
|||
8
Scripts/Components/Actors/3D/ModelAnimation3D.cs
Normal file
8
Scripts/Components/Actors/3D/ModelAnimation3D.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
using Godot;
|
||||
|
||||
namespace Cirno.Scripts.Components.Actors._3D;
|
||||
|
||||
public partial class ModelAnimation3D : Node
|
||||
{
|
||||
|
||||
}
|
||||
1
Scripts/Components/Actors/3D/ModelAnimation3D.cs.uid
Normal file
1
Scripts/Components/Actors/3D/ModelAnimation3D.cs.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://dw1e13462567x
|
||||
Loading…
Add table
Add a link
Reference in a new issue