Exemplo n.º 1
0
    void ChooseAnswer(bool wasCorrect)
    {
        if (wasCorrect)
        {
            if (currentGameState == GameStates.Instruction)
            {
                GAS.SetScreen("Play");

                ShowInstruction  = false;
                currentGameState = GameStates.Play;

                Instruction_Text.PlayReverse();

                Instruction_Shape_L.ResetToBeginning();
                Instruction_Shape_R.ResetToBeginning();

                Instruction_Shape_L.enabled = false;
                Instruction_Shape_R.enabled = false;
            }

            //Do Correct Stats here
            //RecordShapeStats(nextCorrectAnswer,(maxCountdown - currentCountdown),true,false);
            GAS.SetShapeStats(nextCorrectAnswer, true, false);

            AMS.PlayAnswerCorrect();
            Debug.Log("CORRECT");
            score++;
            SetCorrectAnswer();
            ResetTimer();
        }

        else
        {
            //Do fail stats here
            //RecordShapeStats(nextCorrectAnswer,(maxCountdown - currentCountdown),false,false);
            GAS.SetShapeStats(nextCorrectAnswer, false, false);

            GameOver();

            ShowGameoverShapeText();
        }

        UpdateScore();
    }