deactivatePanel() public method

public deactivatePanel ( ) : void
return void
コード例 #1
0
 // 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;
 }
コード例 #2
0
    // 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();
    }