cirnogodot/Scripts/Interactables/Switch.cs

16 lines
288 B
C#
Raw Normal View History

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();
}
}
}