Esempio n. 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);
    }
Esempio n. 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);
	}