1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-02 19:01:36 +00:00

Merge pull request #54077 from Duroxxigar/scenetreetimer-example

Update example code for SceneTreeTimer to reflect new await keyword
This commit is contained in:
Rémi Verschelde
2021-10-21 19:35:05 +02:00
committed by GitHub

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]