Exemplo n.º 1
0
    void FinishRound()
    {
        int numCorrect = CountCorrectItems(currentQuestion);

        questionMap.Remove(currentQuestion);
        timeBeforeCreatingNextQuestion = Time.time + howLongToCelebrate;
        isAwaitingNextQuestion         = true;

        boxStacker.AddBox(numCorrect);
        numQuestionsRemaining--;
        if (numQuestionsRemaining < 0)
        {
            numQuestionsRemaining = 0;
        }
        currentQuestion = invalidQuestion;

        if (singleQuestionCelebration != null)
        {
            singleQuestionCelebration.Play();
        }

        if (numCorrect > 0)
        {
            playAnimController.StartRunningState(false);
            playAnimController.Celebrate();
        }
    }
Exemplo n.º 2
0
 internal void BeginCelebrationState()
 {
     BeginCameraZoom();
     playerAnimController.Celebrate();
 }