This commit is contained in:
MarcEricMartel 2023-06-11 17:33:21 -04:00
parent e28f8cce58
commit f9c8935818

View File

@ -315,10 +315,10 @@ public partial class player : Camera3D
} }
} }
public void End(string scene) public void End(string str)
{ {
var scene = GD.Load<PackedScene>(scene); var scene = GD.Load<PackedScene>(str);
var instance = scene.Instantiate(); var instance = scene.Instantiate();
GetNode<Node>("/root/").AddChild(instance); GetNode<Node>("/root/").AddChild(instance);
this.GetParent().QueueFree(); this.GetParent().QueueFree();