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.
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.
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.