mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
34 lines
609 B
C#
34 lines
609 B
C#
using Godot;
|
|
using System;
|
|
|
|
public partial class InteractionController : Area2D
|
|
{
|
|
private bool _enabled = false;
|
|
|
|
public bool Enabled
|
|
{
|
|
get => _enabled;
|
|
set
|
|
{
|
|
if (_enabled == value) return;
|
|
_enabled = value;
|
|
if (_enabled)
|
|
{
|
|
EmitSignal(SignalName.InteractionStarted);
|
|
}
|
|
}
|
|
}
|
|
|
|
[Signal]
|
|
public delegate void InteractionStartedEventHandler();
|
|
|
|
// Called when the node enters the scene tree for the first time.
|
|
public override void _Ready()
|
|
{
|
|
}
|
|
|
|
// Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
public override void _Process(double delta)
|
|
{
|
|
}
|
|
}
|