summaryrefslogtreecommitdiff
path: root/demos/misc/autoload
diff options
context:
space:
mode:
Diffstat (limited to 'demos/misc/autoload')
-rw-r--r--demos/misc/autoload/global.gd4
-rw-r--r--demos/misc/autoload/scene_a.gd4
-rw-r--r--demos/misc/autoload/scene_b.gd4
3 files changed, 6 insertions, 6 deletions
diff --git a/demos/misc/autoload/global.gd b/demos/misc/autoload/global.gd
index 126cbc0ab7..e094ab9784 100644
--- a/demos/misc/autoload/global.gd
+++ b/demos/misc/autoload/global.gd
@@ -1,6 +1,6 @@
extends Node
-# member variables
+# Member variables
var current_scene = null
@@ -34,7 +34,7 @@ func _deferred_goto_scene(path):
func _ready():
# Get the current scene, the first time.
- # it is always the last child of root,
+ # It is always the last child of root,
# after the autoloaded nodes.
var root = get_tree().get_root()
diff --git a/demos/misc/autoload/scene_a.gd b/demos/misc/autoload/scene_a.gd
index b95ce7dc6e..f9c39887b0 100644
--- a/demos/misc/autoload/scene_a.gd
+++ b/demos/misc/autoload/scene_a.gd
@@ -1,7 +1,7 @@
extends Panel
-# member variables here, example:
+# Member variables here, example:
# var a=2
# var b="textvar"
@@ -13,4 +13,4 @@ func _ready():
func _on_goto_scene_pressed():
get_node("/root/global").goto_scene("res://scene_b.scn")
- pass # replace with function body
+ pass # Replace with function body
diff --git a/demos/misc/autoload/scene_b.gd b/demos/misc/autoload/scene_b.gd
index 599058848b..fdf2287a04 100644
--- a/demos/misc/autoload/scene_b.gd
+++ b/demos/misc/autoload/scene_b.gd
@@ -1,7 +1,7 @@
extends Panel
-# member variables here, example:
+# Member variables here, example:
# var a=2
# var b="textvar"
@@ -13,4 +13,4 @@ func _ready():
func _on_goto_scene_pressed():
get_node("/root/global").goto_scene("res://scene_a.scn")
- pass # replace with function body
+ pass # Replace with function body