コード例 #1
0
 private void ControlNameSaid()
 {
     stopInput   = true;
     stopEndTime = true;
     answerTime  = reactionTime;
     if (GlobalsObject.GetSaidNameAssigned().Equals(GlobalsObject.GetPlayerNameAssigned()))
     {
         correctAnswers++;
         AddScore(addPoints);
         correct.Play();
         GUIControlObject.EnableStudentAnswerText();
         if (correctAnswers >= correctAnswerNedded)
         {
             SceneManager.LoadScene(string.Concat("Change to Level", Globals.actualLevel + 1));
         }
         ChangePlayerName(dificulty);
     }
     else
     {
         ControlLifes();
         timerReactionStoped = true;
         SayMissNamePhrase();
     }
 }