cirnogodot/Scripts/Interactables/Computer.cs

17 lines
255 B
C#
Raw Normal View History

2025-02-07 11:15:57 +01:00
using Godot;
using System;
public partial class Computer : Interactable
{
[Export] public Activable Target { get; set; }
public override bool Activate()
{
if (MeetsRequirements())
{
Target?.Activate();
return true;
}
return false;
}
}