public void EscapeSequence() { if (currentSequence != this) { Debug.LogWarning("Sequence " + name + " has been told to escape, however it's not the current sequence."); return; } if (debug) { Debug.Log("Sequence " + name + " is ending.", this); } currentSequence = null; }
public void BeginSequence() { if (sequence.Count < 1) { return; } if (currentSequence) { Debug.LogWarning(currentSequence.name + " is already running. Only one sequence can be running at a time.", this); return; } currentSequence = this; _index = 0; ExecuteStep(0); }