Esempio n. 1
0
        private void State_manage_overall()
        {
            if (Input.GetKeyDown(KeyCode.Escape))
            {
                AudioController.Play("ui_btn_direction");
                StopManageOverall();
                return;
            }

            if (Input.GetKeyDown(KeyCode.Q))
            {
                AudioController.Play("ui_btn_direction_section");
                UI_MAIN.GoToPrevSection();
            }
            if (Input.GetKeyDown(KeyCode.E))
            {
                AudioController.Play("ui_btn_direction_section");
                UI_MAIN.GoToNextSection();
            }
        }
Esempio n. 2
0
        public void RestartGame()
        {
            UI_END.enabled = false;
            foreach (TransmissionMachine tm in tmMachines)
            {
                tm.enabled = false;
            }
            enabledTmMachineCount = 1;

            foreach (SateliteDish sd in satDishes)
            {
                sd.enabled = false;
            }
            enabledSatDishCount = 1;

            tmMachines[0].LinkSateliteDish(satDishes[0], 0f, 0f);
            serviceStatuses.Clear();
            DATA_PACKAGE.Reboot();
            UI_MAIN.Reboot();
            PLAYER_STATS.Init();

            currentState = State.start;
        }