示例#1
0
    // ---------------------------------------------------------------------------------
    bool SetFxmFolderPopup(System.Type fxmFolderPopup)
    {
        if (m_CurrentFolderPopup != null && m_CurrentFolderPopup.IsShowPopup())
        {
            m_CurrentFolderPopup.ClosePopup(true);
        }

        m_CurrentFolderPopup = m_ToolPopupGameObject.GetComponent(fxmFolderPopup) as FxmFolderPopup;
        if (m_CurrentFolderPopup == null)
        {
            Debug.LogError("m_CurrentFolderPopup is null");
        }
        return(m_CurrentFolderPopup != null);
    }
示例#2
0
	// ---------------------------------------------------------------------------------
	bool SetFxmFolderPopup(System.Type fxmFolderPopup)
	{
		if (m_CurrentFolderPopup != null && m_CurrentFolderPopup.IsShowPopup())
			m_CurrentFolderPopup.ClosePopup(true);

		m_CurrentFolderPopup = m_ToolPopupGameObject.GetComponent(fxmFolderPopup) as FxmFolderPopup;
		if (m_CurrentFolderPopup == null)
			Debug.LogError("m_CurrentFolderPopup is null");
		return (m_CurrentFolderPopup != null);
	}