Example #1
0
	public void CreateAreaMap( string strPath, int iCurMapIdx )
	{		
		if( null == m_uiAreaMap )
		{						
			GameObject goInstance = ResourceLoad.CreateGameObject( strPath, m_uiBackGround.dlgPos.transform );		
			
			m_uiAreaMap = goInstance.GetComponent< UIAreaMap >();
			if( null == m_uiAreaMap )
			{
				AsUtil.ShutDown( "WorldMapDlg::OpenAreaMap()[no find m_uiAreaMap] path : "  + strPath );
				GameObject.DestroyObject(goInstance);
				return;
			}	
			m_uiAreaMap.SetAreaMapClickDelegate(AreaMapBtnClick	); 
			goInstance.transform.localPosition = new Vector3( 0f, 0f, dlgLayout );		
		}			
		
		m_uiAreaMap.Open( iCurMapIdx );		
	}
Example #2
0
	public void CreateAreaMap( string strPath, int iCurMapIdx)
	{
		if( null == m_uiAreaMap)
		{
			GameObject goInstance = ResourceLoad.CreateGameObject( strPath, dlgPos.transform);

			m_uiAreaMap = goInstance.GetComponent<UIAreaMap>();
			if( null == m_uiAreaMap)
			{
				AsUtil.ShutDown( "WorldMapDlg::OpenAreaMap()[no find m_uiAreaMap] path : " + strPath);
				GameObject.DestroyObject( goInstance);
				return;
			}
			m_uiAreaMap.SetAreaMapClickDelegate( AsPartyManager.Instance.PartyUI.AreaMapBtnClick);
		}

		m_uiAreaMap.Open( iCurMapIdx);
	}