Waiting one second before taking a context screenshot to allow for scene loading.

parent 0f8a4d85
......@@ -86,6 +86,7 @@ public class SceneController : MonoBehaviour
private IEnumerator ReplyContext(Func<string, IEnumerator> replyToRequest)
yield return new WaitForSeconds(1);
string response = JSONHandler.instance.GenerateContextJSON().ToString();
// Should better wait until context screenshot is available, but this works good enough
yield return new WaitForSeconds(3);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment