Automatic box deselection

This commit is contained in:
Marco 2025-01-30 17:43:39 +01:00
commit ad985ce1ac
6 changed files with 73 additions and 19 deletions

View file

@ -6,11 +6,14 @@ public partial class Switch : Interactable
{
[Export] public Activable Target { get; set; }
public override void Activate()
public override bool Activate()
{
if (MeetsRequirements())
{
Target?.Activate();
return true;
}
return false;
}
}