mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 09:35:34 +00:00
18 lines
329 B
C#
18 lines
329 B
C#
using Godot;
|
|
using System;
|
|
using Cirno.Scripts;
|
|
|
|
public partial class Computer : Interactable
|
|
{
|
|
[Export] public Activable Target { get; set; }
|
|
public override bool Activate(ActivationType activationType = ActivationType.Toggle)
|
|
{
|
|
if (MeetsRequirements())
|
|
{
|
|
Target?.Activate();
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
}
|