public void ShowMenuPopup(string popupName, string[] displayedMenu, bool[] eabledMenu) { m_CurrentMenuPopup = m_ToolPopupGameObject.GetComponent <FxmMenuPopup>(); if (m_CurrentMenuPopup == null) { m_CurrentMenuPopup = m_ToolPopupGameObject.AddComponent <FxmMenuPopup>(); } if (m_CurrentMenuPopup != null) { if (eabledMenu == null) { m_CurrentMenuPopup.ShowPopupWindow(popupName, displayedMenu); } else { m_CurrentMenuPopup.ShowPopupWindow(popupName, displayedMenu, eabledMenu); } } }
public void ShowMenuPopup(string popupName, string[] displayedMenu, bool[] eabledMenu) { m_CurrentMenuPopup = m_ToolPopupGameObject.GetComponent<FxmMenuPopup>(); if (m_CurrentMenuPopup == null) m_CurrentMenuPopup = m_ToolPopupGameObject.AddComponent<FxmMenuPopup>(); if (m_CurrentMenuPopup != null) { if (eabledMenu == null) m_CurrentMenuPopup.ShowPopupWindow(popupName, displayedMenu); else m_CurrentMenuPopup.ShowPopupWindow(popupName, displayedMenu, eabledMenu); } }