private void JumpToNextSequence() { //jump to the next scene for (int i = 0; i < buttonSequences.Length; i++) { if (buttonSequences[i] == currentSequence && i < buttonSequences.Length - 1) { buttonSequences[i].Deselect(); buttonSequences[i + 1].Select(); currentSequence = buttonSequences[i + 1]; break; } else if (buttonSequences[i] == currentSequence) { //if we win. Fix delegate here. buttonSequences[i].Deselect(); } } }
private void Start() { CreateAllSequenceObjects(); currentSequence = buttonSequences[0]; buttonSequences[0].Select(); }