WeaselGames / godot_luaAPI

Godot LuaAPI
https://luaapi.weaselgames.info
Other
361 stars 27 forks source link

Improvments to yield_await #124

Closed Trey2k closed 1 year ago

Trey2k commented 1 year ago

Previously we stored a reference to the GDScript function state in order to resume later, this PR utilizes the signal await binds to instead and cleans up after.

LuaCoroutine.resume now also takes an array of arguments that can be passed to yield() in lua