cirnogodot/Scripts/Interactables/Switch.cs
2025-01-30 17:43:39 +01:00

19 lines
No EOL
336 B
C#

using Godot;
namespace Cirno.Scripts.Interactables;
public partial class Switch : Interactable
{
[Export] public Activable Target { get; set; }
public override bool Activate()
{
if (MeetsRequirements())
{
Target?.Activate();
return true;
}
return false;
}
}