示例#1
0
    public void Previous()
    {
        if (instructionIndex <= 0)
        {
            return; // cannot go previous if there is no previous instruction
        }

        instructionIndex--;
        slider.value = instructionIndex;

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

        previewTimer = previewTime;
        confirmTimer = confirmTime;
    }