Fix script template on `_ready` behavior

This commit is contained in:
Poommetee Ketson 2018-03-15 18:38:53 +07:00 committed by GitHub
parent bd82fc19e9
commit 01ec06d9ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ Ref<Script> GDScriptLanguage::get_template(const String &p_class_name, const Str
"# var a = 2\n" + "# var a = 2\n" +
"# var b = \"textvar\"\n\n" + "# var b = \"textvar\"\n\n" +
"func _ready():\n" + "func _ready():\n" +
"%TS%# Called every time the node is added to the scene.\n" + "%TS%# Called when the node is added to the scene for the first time.\n" +
"%TS%# Initialization here\n" + "%TS%# Initialization here\n" +
"%TS%pass\n\n" + "%TS%pass\n\n" +
"#func _process(delta):\n" + "#func _process(delta):\n" +