Browse Source

Fixed up shuttle demo

master
chrisgregan 10 years ago
parent
commit
403b2e57d8
  1. 3
      Assets/Fungus/Dialog/Commands/Say.cs
  2. 10
      Assets/Fungus/FungusScript/Editor/FungusScriptWindow.cs
  3. BIN
      Assets/Shuttle/ShuttleGame.unity

3
Assets/Fungus/Dialog/Commands/Say.cs

@ -101,10 +101,13 @@ namespace Fungus.Script
public override void GetConnectedSequences (ref List<Sequence> connectedSequences)
{
foreach (SayOption option in options)
{
if (option.targetSequence != null)
{
connectedSequences.Add(option.targetSequence);
}
}
}
}
}

10
Assets/Fungus/FungusScript/Editor/FungusScriptWindow.cs

@ -289,6 +289,11 @@ namespace Fungus.Script
void DrawConnections(FungusScript fungusScript, Sequence sequence, bool highlightedOnly)
{
if (sequence == null)
{
return;
}
List<Sequence> connectedSequences = new List<Sequence>();
bool sequenceIsSelected = (fungusScript.selectedSequence == sequence);
@ -309,6 +314,11 @@ namespace Fungus.Script
foreach (Sequence sequenceB in connectedSequences)
{
if (sequenceB == null)
{
continue;
}
DrawRectConnection(sequence.nodeRect, sequenceB.nodeRect, highlight);
}
}

BIN
Assets/Shuttle/ShuttleGame.unity

Binary file not shown.
Loading…
Cancel
Save