Files
GameJam2023/Scripts/Level1.cs
2023-09-02 20:03:20 -07:00

12 lines
230 B
C#

using Godot;
public partial class Level1 : Node3D
{
private void OnExitEntered(Node3D node)
{
GD.Print("Exit reached");
var main = GetTree().Root.GetNode<Main>("/root/Main");
main.LoadNextLevel(0);
}
}