using Godot; using System; public class Railway : Node { private Path _path = null; private Path Path { get { if (_path == null) { _path = GetNode("Path"); } return _path; } } public Curve3D Curve => Path.Curve; // Called when the node enters the scene tree for the first time. public override void _Ready() { } public override void _Process(float delta) { } public void AddPathFollower(PathFollow pathFollow) { Path.AddChild(pathFollow); } }