Replace outdated 'GDScriptFunction' identifier with 'GDScriptFunctionState' in example code

This commit is contained in:
mtttz
2020-05-12 23:47:50 +02:00
parent 5b87a44151
commit c7719aa020

View File

@@ -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();