mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
16 lines
288 B
C#
16 lines
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();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|