void RightAnswer() { canvasAnimation.RightAnwer(); ShowScore.scoreValue += 10; //barTime.time += 10; correct = true; answered = true; transform.position = initialPosition; nextQuestions = FindObjectOfType <PlayerText>(); nextQuestions.NextButton(); }
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(); } }