mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-12 07:15:54 +00:00
Locked Doors
This commit is contained in:
parent
e62b539a1e
commit
e25da0fe16
20 changed files with 318 additions and 61 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue