예제 #1
0
	public void ClearEventDlg()
	{
		if( null != m_tooltipEventDlg)
			GameObject.DestroyObject( m_tooltipEventDlg.gameObject);

		m_tooltipEventDlg = null;
	}
예제 #2
0
	public void OpenEventDlg( body2_SC_EVENT_LIST _data)
	{
		ClearEventDlg();

		GameObject obTempTooltip = ResourceLoad.CreateGameObject( eventTooltipPath, tooltipOnePosition.transform);
		if( null == obTempTooltip)
			return;

		m_tooltipEventDlg = obTempTooltip.GetComponent<TooltipEventDlg>();
		if( null == m_tooltipEventDlg)
		{
			Debug.LogError( "TooltipMgr::OpenEventDlg()[ not find Component( TooltipEventDlg) ] path : " + eventTooltipPath);
			DestroyObject( obTempTooltip);
			return;
		}

		m_tooltipEventDlg.Open( _data);
	}