Load level

This commit is contained in:
2023-09-02 20:03:20 -07:00
parent cff32e0fb9
commit 736060d6ca
24 changed files with 723 additions and 17 deletions

11
Scripts/Level1.cs Normal file
View File

@@ -0,0 +1,11 @@
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);
}
}