You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-29 16:16:38 +00:00
Update example code for SceneTreeTimer to reflect new await keyword
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
[gdscript]
|
[gdscript]
|
||||||
func some_function():
|
func some_function():
|
||||||
print("Timer started.")
|
print("Timer started.")
|
||||||
yield(get_tree().create_timer(1.0), "timeout")
|
await get_tree().create_timer(1.0).timeout
|
||||||
print("Timer ended.")
|
print("Timer ended.")
|
||||||
[/gdscript]
|
[/gdscript]
|
||||||
[csharp]
|
[csharp]
|
||||||
|
|||||||
Reference in New Issue
Block a user