예제 #1
0
 public void SetActivePanel(SlideCanvasGroup panel)
 {
     if (activePanel == null)
     {
         //Opening new panel
         panel.Open();
         activePanel = panel;
     }
     else
     {
         //Changing panel
         if (activePanel != panel)
         {
             CloseActivePanel();
             panel.Open();
             activePanel = panel;
         }
         else
         {
             //Closing active panel
             CloseActivePanel();
         }
     }
 }
예제 #2
0
 public void CloseActivePanel()
 {
     activePanel.Close();
     activePanel = null;
 }