Browse Source

Fixed drawing connected sequence for AddOption command

master
chrisgregan 11 years ago
parent
commit
e8fe3a9ac5
  1. 6
      Assets/Fungus/Dialog/Commands/Choose.cs

6
Assets/Fungus/Dialog/Commands/Choose.cs

@ -37,6 +37,8 @@ namespace Fungus
return; return;
} }
Debug.Log (options.Count);
if (options.Count == 0) if (options.Count == 0)
{ {
Continue(); Continue();
@ -90,6 +92,9 @@ namespace Fungus
} }
public override void GetConnectedSequences (ref List<Sequence> connectedSequences) public override void GetConnectedSequences (ref List<Sequence> connectedSequences)
{
// Show connected sequences from preceding AddOption commands
if (IsExecuting())
{ {
foreach (Option option in options) foreach (Option option in options)
{ {
@ -99,6 +104,7 @@ namespace Fungus
} }
} }
} }
}
protected virtual void OnGUI() protected virtual void OnGUI()
{ {

Loading…
Cancel
Save