示例#1
0
    public void activatePanel()
    {
        closeAllPanels();
        panelInterface = controlledPanel.GetComponent <panelInterface>();

        Debug.Log(getTimeToString() + "panelController calling TogglePanel");

        panelInterface.togglePanel();
    }
示例#2
0
 private void closeAllPanels()
 {
     count = 0;
     Debug.Log(getTimeToString() + "panelController closing all panels");
     foreach (GameObject bottomPanel in bottomPanels)
     {
         if (count != controlledPanelNumber)
         {
             panelInterfaces = bottomPanel.GetComponent <panelInterface>();
             panelInterfaces.closePanel();
         }
         count++;
     }
 }