public bool ShowMenuPanel() { if (MenuPanel is null) { MenuPanel = Instantiate(Resources.Load <GameObject>(MenuPanelPath), MenuPanelRoot).GetComponent <MG_MenuPanel>(); StartCoroutine(MenuPanel.OnEnter()); return(true); } Debug.LogWarning("Show MG_MenuPanel Error : panel has show."); return(false); }
public void ShowMenuPanel() { if (MenuPanel is null) { MenuPanel = Instantiate(Resources.Load <GameObject>(MenuPanelPath), MenuPanelRoot).GetComponent <MG_MenuPanel>(); StartCoroutine(MenuPanel.OnEnter()); } else { StartCoroutine(MenuPanel.OnEnter()); } }
public bool ShowMenuPanel(MG_GamePanelType startPanel) { if (MenuPanel is null) { MG_SaveManager.Current_GamePanel = (int)startPanel; MenuPanel = Instantiate(Resources.Load <GameObject>(MenuPanelPath), MenuPanelRoot).GetComponent <MG_MenuPanel>(); StartCoroutine(MenuPanel.OnEnter()); ShowGamePanel(startPanel); return(true); } Debug.LogWarning("Show MG_MenuPanel Error : panel has show."); return(false); }