Beispiel #1
0
 public void ReportFaceClick(FaceBehaviour.FaceTypes clickedFace, Vector3 facePoint)
 {
     if (menuManager.PopupOpenCheck())
     {
         return;
     }
     if (clickedFace == FaceBehaviour.FaceTypes.Neutral)
     {
         questionManager.AddToPassPile(); //If the answer was neutral, sort it to the neutral pile
     }
     else
     {
         bool isCorrect = questionManager.CheckSolution(clickedFace);
         Debug.Log("Game Manager heard a face. Correct? " + isCorrect.ToString());
         if (isCorrect == true)
         {
             effectsManager.CreateEffectAtPoint(EffectsManager.EffectTypes.goodParticle, facePoint);
         }
         else
         {
             effectsManager.CreateEffectAtPoint(EffectsManager.EffectTypes.badParticle, facePoint);
         }
         questionManager.AddToCompletePile();
     }
     TriggerQuestionCue();
 }
Beispiel #2
0
 public bool CheckSolution(FaceBehaviour.FaceTypes inputSolution)
 {
     if (incompleted[currentQuestion].solution == inputSolution) //If the correct solution is the same as your input:
     {
         incompleted[currentQuestion].isSolved = true;
         score++;
         return(true); //Set the question to the completed pile and add 1 to the score
     }
     else
     {
         return(false); //If it's wrong, keep it in the incompleted pile, do not update score
     }
 }
Beispiel #3
0