mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-07-06 03:01:16 +00:00
Event for door opening
This commit is contained in:
parent
f23d84071a
commit
0c694e05af
1 changed files with 6 additions and 0 deletions
|
|
@ -13,6 +13,12 @@ public partial class Door : Activable
|
||||||
[Export]
|
[Export]
|
||||||
public DoorState State { get; set; }
|
public DoorState State { get; set; }
|
||||||
|
|
||||||
|
[Signal]
|
||||||
|
public delegate void DoorOpenedEventHandler();
|
||||||
|
|
||||||
|
[Signal]
|
||||||
|
public delegate void DoorClosedEventHandler();
|
||||||
|
|
||||||
public override void _Ready()
|
public override void _Ready()
|
||||||
{
|
{
|
||||||
_animatedSprite = GetNode<AnimatedSprite2D>("AnimatedSprite2D");
|
_animatedSprite = GetNode<AnimatedSprite2D>("AnimatedSprite2D");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue