diff options
Diffstat (limited to 'demos/misc/scene_changer')
-rw-r--r-- | demos/misc/scene_changer/scene_a.gd | 7 | ||||
-rw-r--r-- | demos/misc/scene_changer/scene_a.scn | bin | 1459 -> 1660 bytes | |||
-rw-r--r-- | demos/misc/scene_changer/scene_b.gd | 7 | ||||
-rw-r--r-- | demos/misc/scene_changer/scene_b.scn | bin | 1448 -> 1639 bytes |
4 files changed, 6 insertions, 8 deletions
diff --git a/demos/misc/scene_changer/scene_a.gd b/demos/misc/scene_changer/scene_a.gd index 956878b0f7..0e80395e84 100644 --- a/demos/misc/scene_changer/scene_a.gd +++ b/demos/misc/scene_changer/scene_a.gd @@ -1,17 +1,16 @@ extends Panel -# member variables here, example: +# Member variables here, example: # var a=2 # var b="textvar" + func _ready(): # Initalization here pass - - func _on_goto_scene_pressed(): get_tree().change_scene("res://scene_b.scn") - pass # replace with function body + pass # Replace with function body diff --git a/demos/misc/scene_changer/scene_a.scn b/demos/misc/scene_changer/scene_a.scn Binary files differindex 61727a57ba..9a4b6434be 100644 --- a/demos/misc/scene_changer/scene_a.scn +++ b/demos/misc/scene_changer/scene_a.scn diff --git a/demos/misc/scene_changer/scene_b.gd b/demos/misc/scene_changer/scene_b.gd index 4f94d6bb8f..9ed13cf26b 100644 --- a/demos/misc/scene_changer/scene_b.gd +++ b/demos/misc/scene_changer/scene_b.gd @@ -1,17 +1,16 @@ extends Panel -# member variables here, example: +# Member variables here, example: # var a=2 # var b="textvar" + func _ready(): # Initalization here pass - - func _on_goto_scene_pressed(): get_tree().change_scene("res://scene_a.scn") - pass # replace with function body + pass # Replace with function body diff --git a/demos/misc/scene_changer/scene_b.scn b/demos/misc/scene_changer/scene_b.scn Binary files differindex ae09eeff88..4cdb03e90e 100644 --- a/demos/misc/scene_changer/scene_b.scn +++ b/demos/misc/scene_changer/scene_b.scn |