예제 #1
0
 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);
 }
예제 #2
0
 public void ShowMenuPanel()
 {
     if (MenuPanel is null)
     {
         MenuPanel = Instantiate(Resources.Load <GameObject>(MenuPanelPath), MenuPanelRoot).GetComponent <MG_MenuPanel>();
         StartCoroutine(MenuPanel.OnEnter());
     }
     else
     {
         StartCoroutine(MenuPanel.OnEnter());
     }
 }
예제 #3
0
 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);
 }