mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
Replace outdated 'GDScriptFunction' identifier with 'GDScriptFunctionState' in example code
This commit is contained in:
@@ -1507,7 +1507,7 @@ Remember to save the new function state, when using multiple ``yield``\s::
|
||||
|
||||
func _ready():
|
||||
var co = co_func();
|
||||
while co is GDScriptFunction && co.is_valid():
|
||||
while co is GDScriptFunctionState && co.is_valid():
|
||||
co = co.resume();
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user