Exemplo n.º 1
0
 void Awake()
 {
     transform.tag           = Tags.CLASSIFICATION_GAME_MANAGER;
     classificationUIManager = GameObject.FindGameObjectWithTag(Tags.CLASSIFICATION_UI_MANAGER).GetComponent <ClassificationUIManager> ();
     instructionSoundManager = GameObject.FindGameObjectWithTag(Tags.INSTRUCTIONS_SOUND_MANAGER).GetComponent <InstructionSoundManager> ();
     soundManager            = GameObject.FindGameObjectWithTag(Tags.SOUND_MANAGER).GetComponent <SoundManager> ();
     notificationManager     = GameObject.FindGameObjectWithTag(Tags.NOTIFICATION_MANAGER).GetComponent <IdleCheck> ();
     if (classificationUIManager == null)
     {
         Debug.LogError("CLASSIFICATION_UI_MANAGER IS NULL !!");
     }
     GenerateQuestions();
     selectedSprites = new List <Actor> ();
 }
Exemplo n.º 2
0
 void Awake()
 {
     gameWordsUIManager      = GameObject.FindGameObjectWithTag(Tags.GAME_WORDS_UI_MANAGER).GetComponent <GameWordsUIManager> ();
     instructionSoundManager = GameObject.FindGameObjectWithTag(Tags.INSTRUCTIONS_SOUND_MANAGER).GetComponent <InstructionSoundManager> ();
     soundManager            = GameObject.FindGameObjectWithTag(Tags.SOUND_MANAGER).GetComponent <SoundManager> ();
     //notificationManager = GameObject.FindGameObjectWithTag (Tags.NOTIFICATION_MANAGER).GetComponent<IdleCheck> ();
     if (gameWordsUIManager == null)
     {
         Debug.LogError("QUIZ_UI_MANAGER IS NULL !!");
     }
     GenerateWords();
     if (words.Length == 0)
     {
         Debug.LogError("WORDS LIST IS EMPTY !!");
     }
 }
Exemplo n.º 3
0
 // Use this for initialization
 void Awake()
 {
     quizUIManager           = GameObject.FindGameObjectWithTag(Tags.QUIZ_UI_MANAGER).GetComponent <QuizUIManager> ();
     instructionSoundManager = GameObject.FindGameObjectWithTag(Tags.INSTRUCTIONS_SOUND_MANAGER).GetComponent <InstructionSoundManager> ();
     soundManager            = GameObject.FindGameObjectWithTag(Tags.SOUND_MANAGER).GetComponent <SoundManager> ();
     notificationManager     = GameObject.FindGameObjectWithTag(Tags.NOTIFICATION_MANAGER).GetComponent <IdleCheck> ();
     if (quizUIManager == null)
     {
         Debug.LogError("QUIZ_UI_MANAGER IS NULL !!");
     }
     GenerateQuestions();
     if (questions.Length == 0)
     {
         Debug.LogError("QUESTIONS QUEUE IS EMPTY !!");
     }
 }