deactivatePanel() public method

public deactivatePanel ( ) : void
return void
 // set up to go to new game menu
 public void toNewGame()
 {
     turning        = true;
     moving         = true;
     targetLocation = newGameWayPoint.position;
     targetRotation = newGameWayPoint.rotation;
     currentMenu.deactivatePanel();
     currentMenu  = newGameMenu;
     currentPanel = Panel.NEWGAME;
 }
    // Use this for initialization
    void Start()
    {
        transform.position = instructionMenuWayPoint.position;
        transform.rotation = instructionMenuWayPoint.rotation;
        currentPanel       = Panel.MENU;
        currentMenu        = instructionMenu;
        currentMenu.activatePanel();

        newGameMenu.deactivatePanel();
        continueMenu.deactivatePanel();
    }