Ejemplo n.º 1
0
    void Awake()
    {
        BackButton = GameObject.Find("Canvas/Back");
        BackButton.SetActive(false);

        cardUIManager    = gameObject.GetComponent <CardUIManager>();
        quizSceneManager = gameObject.GetComponent <QuizSceneManager>();
    }
Ejemplo n.º 2
0
 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>();
 }
Ejemplo n.º 3
0
    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);
    }
Ejemplo n.º 4
0
	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 ();
		}
	}
Ejemplo n.º 5
0
	void OnLevelWasLoaded(int level) {
		currentSceneManager = GameObject.Find("QuizSceneManager").GetComponent<QuizSceneManager>();
		currentSceneManager.quizManager = this;
		copyLandmarkList();
		currentSceneManager.populateButtons(landmarksToPass);	
	}