woups
This commit is contained in:
parent
e28f8cce58
commit
f9c8935818
@ -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();
|
||||
GetNode<Node>("/root/").AddChild(instance);
|
||||
this.GetParent().QueueFree();
|
||||
|
Loading…
Reference in New Issue
Block a user