mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-17 01:23:48 +00:00
Player spawning and isometric in menu
This commit is contained in:
parent
a11f25e19d
commit
1229613def
10 changed files with 286 additions and 43 deletions
16
Scripts/Misc/CameraTarget3D.cs
Normal file
16
Scripts/Misc/CameraTarget3D.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue