cirnogodot/Scripts/Interactables/Computer.cs

18 lines
329 B
C#
Raw Permalink Normal View History

2025-02-07 11:15:57 +01:00
using Godot;
using System;
2025-03-09 21:58:25 +01:00
using Cirno.Scripts;
2025-02-07 11:15:57 +01:00
public partial class Computer : Interactable
{
[Export] public Activable Target { get; set; }
2025-03-09 21:58:25 +01:00
public override bool Activate(ActivationType activationType = ActivationType.Toggle)
2025-02-07 11:15:57 +01:00
{
if (MeetsRequirements())
{
Target?.Activate();
return true;
}
return false;
}
}