コード例 #1
0
 void RightAnswer()
 {
     canvasAnimation.RightAnwer();
     ShowScore.scoreValue += 10;
     //barTime.time += 10;
     correct            = true;
     answered           = true;
     transform.position = initialPosition;
     nextQuestions      = FindObjectOfType <PlayerText>();
     nextQuestions.NextButton();
 }
コード例 #2
0
    void WrongAnswer()
    {
        canvasAnimation.canvasShake();
        ShowLives.livesAmount--;
        answered           = true;
        correct            = false;
        transform.position = initialPosition;
        livesSprite.CambioVida(ShowLives.livesAmount);

        if (ShowLives.livesAmount <= 0)
        {
            KillPlayer();
        }
        else
        {
            nextQuestions.NextButton();
        }
    }