FN_Computer

At the start of the shift, the player enters a name at the computer. FN_Computer saves the name, updates the wrist display and returns control to the player after the camera sequence.

Submitting the name

public void SubmitName() {
  st_playerName = input.text.ToUpper();
  PlayerPrefs.SetString("PlayerName", st_playerName);
  wristUI.UpdateNameDisplay();
  MarkTaskComplete();
  StartCoroutine(ReturnToPlayerAtomic());
}

Converts the name to uppercase, saves it in PlayerPrefs and updates the wrist display.

Name entry on the warehouse computer.

Starting the camera sequence

public void InteractWithComputer() {
  if (bl_inCinematic) return;
  bl_inCinematic = true;
  cameraMovement.MoveToPoint(tr_cinematicView, fl_lerpSpeed);
  DisablePlayerControl();
}

Moves to the computer camera view and disables player control. Repeated calls are ignored while the sequence is active.

Camera view used during the computer task.

Returning control

private IEnumerator ReturnToPlayerAtomic() {
  yield return new WaitForSeconds(1.5f);
  cameraMovement.MoveToPoint(tr_cameraHolder, fl_lerpSpeed);
  EnablePlayerControl();
}

Waits 1.5 seconds, moves the camera back and enables player control.

First-person camera after the computer task.

Gameplay video

← Return to Warehouse Simulator