Exemplo n.º 1
0
        private void Start()
        {
            ExitMenuObject       = GameObject.Find("ConfirmExitGameDialog");
            AuthorsWindowObject  = GameObject.Find("AuthorsWindow");
            SettingsWindowObject = GameObject.Find("SettingsWindow");
            NewGameWindow        = GameObject.Find("NewGameWindow");
            ConfirmNewGameObject = GameObject.Find("ConfirmNewGameDialog");
            MainMenuObject       = GameObject.Find("MainMenu");

            NewGameWindow.SetActive(false);
            ConfirmNewGameObject.SetActive(false);
            AuthorsWindowObject.SetActive(false);
            SettingsWindowObject.SetActive(false);
            ExitMenuObject.SetActive(false);

            MainMenuObject.SetActive(true);
        }
Exemplo n.º 2
0
        private void Start()
        {
            GameController = GameObject.Find("GameControllerObject").GetComponent <GameController>();

            SettingsWindowObject = GameObject.Find("SettingsWindow");

            GameMenuObject   = GameObject.Find("GameMenu");
            ExitDialogObject = GameObject.Find("ConfirmExitDialog");

            MenuButtonObject       = GameObject.Find("MenuButton");
            DimmedBackgroundObject = GameObject.Find("DimmedBackground");

            DimmedBackgroundObject.SetActive(false);
            GameMenuObject.SetActive(false);
            SettingsWindowObject.SetActive(false);
            ExitDialogObject.SetActive(false);
        }
Exemplo n.º 3
0
 public void SettingsButton_Click()
 {
     SettingsWindowObject.SetActive(true);
     MainMenuObject.SetActive(false);
 }
Exemplo n.º 4
0
 public void ExitSettingsButton_Click()
 {
     SettingsWindowObject.SetActive(false);
     GameMenuObject.SetActive(true);
 }