1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Add _process(delta) to new script templates. Closes #11994.

This commit is contained in:
mhilbrunner
2017-10-22 21:07:34 +02:00
parent b4f0f59d9f
commit ba779c1c0c
2 changed files with 13 additions and 2 deletions

View File

@@ -277,7 +277,14 @@ Ref<Script> CSharpLanguage::get_template(const String &p_class_name, const Strin
" // Initialization here\n"
" \n"
" }\n"
"}\n";
"\n"
"// public override void _Process(float delta)\n"
"// {\n"
"// // Called every frame. Delta is time since last frame.\n"
"// // Update game logic here.\n"
"// \n"
"// }\n"
"//}\n";
script_template = script_template.replace("%BASE_CLASS_NAME%", p_base_class_name).replace("%CLASS_NAME%", p_class_name);