Beispiel #1
0
    /// <summary>
    /// Advance into the next instruction
    /// </summary>
    public void Next()
    {
        if (instructionIndex >= instructions.Length - 1)
        {
            return; // cannot go next if there is no next instruction
        }

        instructionIndex++;
        slider.value = instructionIndex;

        currentInstruction = instructions[instructionIndex];
        currentInstruction.AdvanceIn();
        infoText.text = currentInstruction.Info;

        previewTimer = previewTime;
        confirmTimer = confirmTime;
    }