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 Awake() { //Instance = this; QuizManager = GameObject.Find("QuizManager"); quizUIManager = gameObject.GetComponent <QuizUIManager>(); cardUIManager = gameObject.GetComponent <CardUIManager>(); cardAnimManager = gameObject.GetComponent <CardAnimManager>(); quizGetter = QuizManager.GetComponent <QuizGetter>(); multiQuizManager = GameObject.Find("MultiQuizManager").GetComponent <MultiQuizManager>(); answerUIManager = gameObject.GetComponent <AnswerUIManager>(); userManager = UserManager.Instance.gameObject; }