Interactable interface

This commit is contained in:
MaddoScientisto 2025-03-09 21:58:25 +01:00
commit 54d9824581
27 changed files with 102 additions and 61 deletions

View file

@ -79,7 +79,7 @@ public partial class Door : Activable
//_solidShape.Disabled = state;
}
public override void Activate(ActivationType activationType = ActivationType.Toggle)
public override bool Activate(ActivationType activationType = ActivationType.Toggle)
{
switch (activationType)
{
@ -108,6 +108,8 @@ public partial class Door : Activable
ToggleDoor();
break;
}
return true;
}
private void ToggleDoor()