mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
16 lines
No EOL
395 B
C#
16 lines
No EOL
395 B
C#
using Godot;
|
|
|
|
namespace Cirno.Scripts.Misc;
|
|
|
|
public partial class CameraTarget : Node2D
|
|
{
|
|
public override void _Ready()
|
|
{
|
|
// register with the controller
|
|
var res = GetTree().GetFirstNodeInGroup("camera_controllers");
|
|
if (res is not null && res is CameraController cameraController)
|
|
{
|
|
cameraController.RegisterTarget(this);
|
|
}
|
|
}
|
|
} |