snozbot / fungus

An easy to use Unity 3D library for creating illustrated Interactive Fiction games and more.
MIT License
1.59k stars 291 forks source link

If you run the editor in pause mode, the say command cannot be executed! #1063

Open zfh2773333333 opened 1 year ago

zfh2773333333 commented 1 year ago

Describe the bug If you run the editor in pause mode, the say command cannot be executed.

To Reproduce

  1. Create a block and create some say commands using the "GameStarted" event.
  2. Activate the Pause button on the Unity Editor.
  3. Run the Unity Editor.
  4. Deactivate the pause button.
  5. At this point, we can observe, the Say command cannot be executed.

Screenshots Snipaste_2023-03-19_08-06-05

Versions & Platform (please complete the following information):

esklarski commented 11 months ago

I realize this is rather late but I did solve this problem, which isn't so much a bug as a not-yet-implemented feature since Fungus uses coroutines for some functions and those rely on scaled time, so they don't run at a time scale of 0.

But it can be done, see this for more details: https://github.com/snozbot/fungus/pull/1055