Example #1
0
 private void StopManageOverall()
 {
     currentState      = State.idle;
     UI_MAIN.enabled   = false;
     SCIENTIST.enabled = true;
     CAMERA.SetLookAtTarget(null);
 }
Example #2
0
 public void ManageOverall()
 {
     currentState      = State.manage_overall;
     UI_MAIN.enabled   = true;
     SCIENTIST.enabled = false;
     CAMERA.SetLookAtTarget(transform);
 }
Example #3
0
 private void StopManageTM()
 {
     currentState      = State.idle;
     UI_TM.enabled     = false;
     SCIENTIST.enabled = true;
     activeTmMachine   = null;
     CAMERA.SetLookAtTarget(null);
 }
Example #4
0
 private void StopManageSatelite()
 {
     currentState      = State.idle;
     UI_SAT.enabled    = false;
     SCIENTIST.enabled = true;
     activeSatDish.RotateDish(0);
     activeSatDish = null;
     CAMERA.SetLookAtTarget(null);
 }
Example #5
0
 public void EndGame()
 {
     currentState = State.results;
     SCIENTIST.Respawn(playerStartPos);
     SCIENTIST.enabled    = false;
     DATA_PACKAGE.enabled = false;
     UI_MAIN.enabled      = false;
     UI_TM.enabled        = false;
     UI_SAT.enabled       = false;
     UI_END.enabled       = true;
     CAMERA.SetLookAtTarget(endLookPos);
 }
Example #6
0
 private void State_start()
 {
     if (Input.GetKeyDown(KeyCode.Space))
     {
         AudioController.Play("ui_btn_direction_section");
         UI_START.enabled = false;
         PLAYER_STATS.BeginTimer();
         CAMERA.SetLookAtTarget(null);
         UI_GAME.SetLabelsAlpha(1.0f);
         SCIENTIST.enabled    = true;
         DATA_PACKAGE.enabled = true;
         currentState         = State.idle;
     }
 }
Example #7
0
        public void ManageTM(string tmId)
        {
            currentState      = State.manage_tm;
            SCIENTIST.enabled = false;

            foreach (TransmissionMachine tm in tmMachines)
            {
                if (tm.name.Equals(tmId))
                {
                    activeTmMachine = tm;
                    break;
                }
            }

            UI_TM.Setup(activeTmMachine);
            CAMERA.SetLookAtTarget(activeTmMachine.transform);
        }
Example #8
0
        public void ManageSatelite(string sateliteId)
        {
            currentState      = State.manage_satelite;
            SCIENTIST.enabled = false;

            foreach (SateliteDish satDish in satDishes)
            {
                if (satDish.name.Equals(sateliteId))
                {
                    activeSatDish = satDish;
                    break;
                }
            }

            UI_SAT.Setup(activeSatDish);
            CAMERA.SetLookAtTarget(
                activeSatDish.transform,
                playerStartPos
                );
        }