void Awake() { BackButton = GameObject.Find("Canvas/Back"); BackButton.SetActive(false); cardUIManager = gameObject.GetComponent <CardUIManager>(); quizSceneManager = gameObject.GetComponent <QuizSceneManager>(); }
void Awake() { quizUIManager = GameObject.Find("GameManager").GetComponent <QuizUIManager>(); _photonView = PhotonView.Get(this); quizSceneManager = GameObject.Find("GameManager").GetComponent <QuizSceneManager>(); quizGetter = GameObject.Find("QuizManager").GetComponent <QuizGetter>(); cardUIManager = GameObject.Find("GameManager").GetComponent <CardUIManager>(); }
void Awake() { Instance = this; QuizManager = GameObject.Find("QuizManager"); quizUIManager = gameObject.GetComponent <QuizUIManager>(); quizGetter = QuizManager.GetComponent <QuizGetter>(); multiQuizManager = GameObject.Find("MultiQuizManager").GetComponent <MultiQuizManager>(); SetCurrentState(GameState.Start); }
void OnLevelWasLoaded (int level) { if (SceneManager.GetActiveScene ().name != "GameOver") { currentSceneManager = GameObject.Find ("QuizSceneManager").GetComponent<QuizSceneManager> (); currentSceneManager.quizManager = this; copyLandmarkList (); currentSceneManager.populateButtons (landmarksToPass); currentSceneManager.setInformationalText (currentSceneManager.shortText); } if (SceneManager.GetActiveScene ().name == "GameOver") { setFinalScoreText (); } }
void OnLevelWasLoaded(int level) { currentSceneManager = GameObject.Find("QuizSceneManager").GetComponent<QuizSceneManager>(); currentSceneManager.quizManager = this; copyLandmarkList(); currentSceneManager.populateButtons(landmarksToPass); }