Ejemplo n.º 1
0
 public void OpenPanel(UIPanel newActivePanel)
 {
     if (newActivePanel == activePanel)
     {
         return;
     }
     if (mainUIPanels.IndexOf(activePanel) < mainUIPanels.IndexOf(newActivePanel))
     {
         activePanel?.ClosePanel("Up");
         newActivePanel.OpenPanel("Up");
     }
     else
     {
         activePanel?.ClosePanel("Down");
         newActivePanel.OpenPanel("Down");
     }
     mainPanelTitleText.text = newActivePanel.title;
     activePanel             = newActivePanel;
 }