// set up to go to continue menu public void toContinue() { turning = true; moving = true; targetLocation = continueWayPoint.position; targetRotation = continueWayPoint.rotation; currentMenu.deactivatePanel(); currentMenu = continueMenu; currentPanel = Panel.CONTINUE; }
// set up to go to instruction menu public void toInstructionMenu() { turning = true; moving = true; targetLocation = instructionMenuWayPoint.position; targetRotation = instructionMenuWayPoint.rotation; currentMenu.deactivatePanel(); currentMenu = instructionMenu; currentPanel = Panel.MENU; }
// 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; }
// 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; }
// set up to go to instruction menu public void toInstructionMenu() { turning = true; moving = true; targetLocation = instructionMenuWayPoint.position; targetRotation = instructionMenuWayPoint.rotation; currentMenu.deactivatePanel (); currentMenu = instructionMenu; currentPanel = Panel.MENU; }
// set up to go to continue menu public void toContinue() { turning = true; moving = true; targetLocation = continueWayPoint.position; targetRotation = continueWayPoint.rotation; currentMenu.deactivatePanel (); currentMenu = continueMenu; currentPanel = Panel.CONTINUE; }
// 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(); }
// 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 (); }