Exemplo n.º 1
0
 private void StopManageOverall()
 {
     currentState      = State.idle;
     UI_MAIN.enabled   = false;
     SCIENTIST.enabled = true;
     CAMERA.SetLookAtTarget(null);
 }
Exemplo n.º 2
0
 public void ManageOverall()
 {
     currentState      = State.manage_overall;
     UI_MAIN.enabled   = true;
     SCIENTIST.enabled = false;
     CAMERA.SetLookAtTarget(transform);
 }
Exemplo n.º 3
0
 private void StopManageTM()
 {
     currentState      = State.idle;
     UI_TM.enabled     = false;
     SCIENTIST.enabled = true;
     activeTmMachine   = null;
     CAMERA.SetLookAtTarget(null);
 }
Exemplo n.º 4
0
 private void StopManageSatelite()
 {
     currentState      = State.idle;
     UI_SAT.enabled    = false;
     SCIENTIST.enabled = true;
     activeSatDish.RotateDish(0);
     activeSatDish = null;
     CAMERA.SetLookAtTarget(null);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 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);
        }
Exemplo n.º 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
                );
        }
Exemplo n.º 9
0
 internal static HandleRef getCPtr(CAMERA obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }