|
|
@ -16,12 +16,13 @@ namespace Fungus.Script |
|
|
|
public Sequence startSequence; |
|
|
|
public Sequence startSequence; |
|
|
|
|
|
|
|
|
|
|
|
[System.NonSerialized] |
|
|
|
[System.NonSerialized] |
|
|
|
public Sequence activeSequence; |
|
|
|
public Sequence executingSequence; |
|
|
|
|
|
|
|
|
|
|
|
public bool startAutomatically = false; |
|
|
|
public bool startAutomatically = false; |
|
|
|
|
|
|
|
|
|
|
|
public List<FungusVariable> variables = new List<FungusVariable>(); |
|
|
|
public List<FungusVariable> variables = new List<FungusVariable>(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void Start() |
|
|
|
void Start() |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (startAutomatically) |
|
|
|
if (startAutomatically) |
|
|
@ -51,7 +52,7 @@ namespace Fungus.Script |
|
|
|
Selection.activeGameObject = sequence.gameObject; |
|
|
|
Selection.activeGameObject = sequence.gameObject; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
activeSequence = sequence; |
|
|
|
executingSequence = sequence; |
|
|
|
sequence.ExecuteNextCommand(); |
|
|
|
sequence.ExecuteNextCommand(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|