mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:35:34 +00:00
Computers
This commit is contained in:
parent
f873cba98b
commit
c41967572b
23 changed files with 655 additions and 11 deletions
17
Scripts/Interactables/Computer.cs
Normal file
17
Scripts/Interactables/Computer.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue