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