Exemplo n.º 1
0
    void tick()
    {
        tickTime -= 1;
        if (tickTime < 0)
        {
            changeStep();
        }
        else
        {
        }

        if (currentStep == steps.question)
        {
            ui.addToFooter("Submit your answer now (" + tickTime + ")");
        }
        else if (currentStep == steps.lag)
        {
            ui.replaceFooter("Waiting for stream lag... (" + tickTime + ")");
        }
        else if (currentStep == steps.answer)
        {
            ui.addToFooter("Get ready for the next question... (" + tickTime + ")");
        }
        else if (currentStep == steps.scores)
        {
            scoreFooter.text = "Next round category: " + categories[categoryID] + " (" + tickTime + ")";
        }
    }