Ejemplo n.º 1
0
    public void UpdateProfessor()
    {
        // Hide professor at the end of a sequence.
        professorController.Show(false);
        professorController.ShowBeer(false, 0);
        professorController.ShowAngry(false);
        professorController.ShowMoney(false);

        // Set last professor sequence and state after errors were shown.
        int sId = professorController.GetCurrentSequenceId();

        if (sId < 0)
        {
            professorController.SetSequenceAndState(lastSequence, lastState);
        }
    }