private void StopManageOverall() { currentState = State.idle; UI_MAIN.enabled = false; SCIENTIST.enabled = true; CAMERA.SetLookAtTarget(null); }
public void ManageOverall() { currentState = State.manage_overall; UI_MAIN.enabled = true; SCIENTIST.enabled = false; CAMERA.SetLookAtTarget(transform); }
private void StopManageTM() { currentState = State.idle; UI_TM.enabled = false; SCIENTIST.enabled = true; activeTmMachine = null; CAMERA.SetLookAtTarget(null); }
private void StopManageSatelite() { currentState = State.idle; UI_SAT.enabled = false; SCIENTIST.enabled = true; activeSatDish.RotateDish(0); activeSatDish = null; CAMERA.SetLookAtTarget(null); }
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); }
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; } }
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); }
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 ); }