Make Lua.Run work after a Time.Delay
Posted: Wed Jan 24, 2024 2:39 am
Hi all,
I'm currently working on implementing a quiz system in Unity using the Dialogue System. The quiz answers and questions are retrieved from a database which means I need to delay updating the conversation until after the data is retrieved.
The issue I'm running into is that after the delay, Lua.Run doesn't seem to function as intended. I've tried running Lua.Run with debug and and allowExceptions flagged as true, but this nothing displays in the console. It's as if running Lua.Run causes the entire Dialogue System to freeze and stop functioning. If anyone has any ideas as to how I might make the Lua function work, I would greatly appreciate it.
Thanks!
I'm currently working on implementing a quiz system in Unity using the Dialogue System. The quiz answers and questions are retrieved from a database which means I need to delay updating the conversation until after the data is retrieved.
The issue I'm running into is that after the delay, Lua.Run doesn't seem to function as intended. I've tried running Lua.Run with debug and and allowExceptions flagged as true, but this nothing displays in the console. It's as if running Lua.Run causes the entire Dialogue System to freeze and stop functioning. If anyone has any ideas as to how I might make the Lua function work, I would greatly appreciate it.
Thanks!