public void ClearEventDlg() { if( null != m_tooltipEventDlg) GameObject.DestroyObject( m_tooltipEventDlg.gameObject); m_tooltipEventDlg = null; }
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); }