Browse Source

Fixed Say() command clearing previously added options

master
chrisgregan 11 years ago
parent
commit
a801431750
  1. 3
      Assets/Fungus/Scripts/Page.cs

3
Assets/Fungus/Scripts/Page.cs

@ -301,13 +301,14 @@ namespace Fungus
{ {
Action tempAction = deferredAction; Action tempAction = deferredAction;
options.Clear();
displayedStoryText = ""; displayedStoryText = "";
originalStoryText = ""; originalStoryText = "";
deferredAction = null; deferredAction = null;
if (mode == Mode.Choose) if (mode == Mode.Choose)
{ {
options.Clear();
// Reset to idle, but calling action may set this again // Reset to idle, but calling action may set this again
mode = Mode.Idle; mode = Mode.Idle;

Loading…
Cancel
Save