wixette / isb

Interactive Small Basic (ISB) - Simple scripting language to be embedded in Unity games or shell environments.
https://www.nuget.org/packages/ISB/
Apache License 2.0
24 stars 3 forks source link

Issue with Reset() and coroutines #35

Open ratkingsminion opened 1 year ago

ratkingsminion commented 1 year ago

I wondered if the lines

            if (isCoroutineRunning) {
                ReportCoroutineReentered();
                return;
            }

in Reset() of Engine are correct. Because I can't reset an engine that was running in a coroutine before. Alternatively, is there a way to set isCoroutineRunning to false directly?