Пример #1
0
 public void ActivateMenu()
 {
     //when opening the menu the manager returns true, false if it is closing the menu
     //unlock or lock the mouse based on the menu state
     inMenu = menuManager.OpenMenu();
     inMap  = !inMenu;
     cam.SetInMenu(inMenu);
     timeManager.SetInMenu(inMenu);
     //set the player controller so that when in menu the ship isnt flying around
     playerManager.SetInMenu(inMenu);
     //TODO: think about pausing or not
 }