12 lines
230 B
C#
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);
|
|
}
|
|
}
|