Ejemplo n.º 1
0
    public void activatePanel()
    {
        closeAllPanels();
        panelInterface = controlledPanel.GetComponent <panelInterface>();

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

        panelInterface.togglePanel();
    }
Ejemplo n.º 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++;
     }
 }