Locked Doors

This commit is contained in:
Marco 2025-04-24 16:40:51 +02:00
commit e25da0fe16
20 changed files with 318 additions and 61 deletions

View file

@ -44,6 +44,7 @@ public partial class Door : Activable
public virtual void Open()
{
if (State == DoorState.Open) return;
// _animatedSprite.Play("Opening");
State = DoorState.Open;
CallDeferred(MethodName.DeferredDisableCollision, true);
@ -55,6 +56,7 @@ public partial class Door : Activable
public virtual void Close()
{
if (State == DoorState.Closed) return;
// _animatedSprite.Play("Closing");
State = DoorState.Closed;
CallDeferred(MethodName.DeferredDisableCollision, false);