public void activatePanel() { closeAllPanels(); panelInterface = controlledPanel.GetComponent <panelInterface>(); Debug.Log(getTimeToString() + "panelController calling TogglePanel"); panelInterface.togglePanel(); }
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++; } }