cirnogodot/Scripts/Interactables/Switch.cs

16 lines
No EOL
288 B
C#

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