cirnogodot/Scenes/Interactable.cs

13 lines
202 B
C#
Raw Normal View History

2024-06-09 18:19:57 +02:00
using Godot;
using System;
using System.Diagnostics;
public partial class Interactable : Area2D
{
2024-06-10 22:29:41 +02:00
[Export] public Activable Target { get; set; }
2024-06-09 18:19:57 +02:00
public void Activate()
{
2025-01-20 12:17:27 +01:00
Target?.Activate();
2024-06-09 18:19:57 +02:00
}
}