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