Update all instances of instance() to instantiate()

This commit is contained in:
Hugo Locurcio
2022-11-29 16:58:44 +01:00
parent f133c1ce64
commit 509804650e
15 changed files with 35 additions and 35 deletions

View File

@@ -203,7 +203,7 @@ current scene and replace it with the requested one.
var s = ResourceLoader.load(path)
# Instance the new scene.
current_scene = s.instance()
current_scene = s.instantiate()
# Add it to the active scene, as child of root.
get_tree().root.add_child(current_scene)
@@ -236,7 +236,7 @@ current scene and replace it with the requested one.
var nextScene = (PackedScene)GD.Load(path);
// Instance the new scene.
CurrentScene = nextScene.Instance();
CurrentScene = nextScene.Instantiate();
// Add it to the active scene, as child of root.
GetTree().Root.AddChild(CurrentScene);