Beispiel #1
0
	public void LoadLobiAgreement()
	{
		if( null == m_AgreementDlg)
		{
			GameObject obj = Instantiate( Resources.Load( "UI/AsGUI/GUI_RecordPopup")) as GameObject;
			m_AgreementDlg = obj.GetComponent<AsLobiAgreement>();
		}
	
		m_AgreementDlg.Open();

	}
Beispiel #2
0
	void OnDestroy() {

		if( null != m_AgreementDlg)
		{
			GameObject.Destroy( m_AgreementDlg.gameObject );
			m_AgreementDlg = null;
		}
	}