14 lines
324 B
C#
14 lines
324 B
C#
using Godot;
|
|
|
|
public partial class GameRoot : Node
|
|
{
|
|
public static GameRoot Instance { get; private set; } = null!;
|
|
public event System.Action<Creature>? CaptureRequested;
|
|
|
|
public override void _EnterTree()
|
|
{
|
|
Instance = this;
|
|
}
|
|
|
|
public void RequestCapture(Creature creature) => CaptureRequested?.Invoke(creature);
|
|
}
|