示例#1
0
 public void CheckAnswer()
 {
     if (playerAnswer.text == solution.ToString() & !impossibleMode)
     {
         results[problem - 1].texture = correct;
         baldiAudio.Stop();
         ClearAudioQueue();
         int num = Mathf.RoundToInt(Random.Range(0f, 4f));
         QueueAudio(bal_praises[num]);
         NewProblem();
     }
     else
     {
         SceneManager.LoadScene("Secret");
         problemsWrong++;
         results[problem - 1].texture = incorrect;
         if (!gc.spoopMode)
         {
             baldiFeed.SetTrigger("angry");
             gc.ActivateSpoopMode();
         }
         if (gc.mode == "story")
         {
             if (problem == 3)
             {
                 baldiScript.GetAngry(1f);
             }
             else
             {
                 baldiScript.GetTempAngry(0.25f);
             }
         }
         else
         {
             baldiScript.GetAngry(1f);
         }
         ClearAudioQueue();
         baldiAudio.Stop();
         NewProblem();
     }
 }