1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-30 16:26:50 +00:00

Update example code for SceneTreeTimer to reflect new await keyword

This commit is contained in:
Duroxxigar
2021-10-21 12:22:55 -04:00
parent fad7034e8b
commit cfb5d2dbf0

View File

@@ -10,7 +10,7 @@
[gdscript]
func some_function():
print("Timer started.")
yield(get_tree().create_timer(1.0), "timeout")
await get_tree().create_timer(1.0).timeout
print("Timer ended.")
[/gdscript]
[csharp]