Exemple #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();
 }