Exemplo n.º 1
0
	void Start () {
		if (!GameManager.Instance.bGameLogin) {
			SceneManager.LoadScene ("Title");
			return;
		}
		SetObject ();
		m_sBackLoop = GameData.FindChild (this.transform, "Frest").GetComponent<BackLoop> ();
		m_sGameControl = m_oCamera.transform.FindChild ("GameControl").GetComponent<GameControlScript> ();
		m_sPlayer = m_oCamera.transform.FindChild ("Player").GetComponent<PlayerScript> ();
		m_sGameUi = m_oCamera.transform.FindChild ("PanelUi").GetComponent<GameUiScript> ();
		m_sBackLoop.SetManager (this);
		m_sGameControl.SetManager (this);
		m_sPlayer.SetManager (this);
		m_sGameUi.SetManager (this);
	}