FN_Computer
This is the first task the player encounters in the shift. It blends cinematic camera control, ui input, and syncing the player name across systems.
Main Responsibilities
- Moves camera to cinematic point and freezes input.
- Opens ui for player name entry.
- Stores and shares name with other systems.
- Restores control and completes task.
Submit Logic
public void SubmitName() {
st_playerName = input.text.ToUpper();
PlayerPrefs.SetString("PlayerName", st_playerName);
wristUI.UpdateNameDisplay();
MarkTaskComplete();
StartCoroutine(ReturnToPlayerAtomic());
}
stores name and exits cinematic
Camera Movement (Cinematic Start)
public void InteractWithComputer() {
if (bl_inCinematic) return;
bl_inCinematic = true;
cameraMovement.MoveToPoint(tr_cinematicView, fl_lerpSpeed);
DisablePlayerControl();
}
enters cinematic and disables input
Coroutine Restore
private IEnumerator ReturnToPlayerAtomic() {
yield return new WaitForSeconds(1.5f);
cameraMovement.MoveToPoint(tr_cameraHolder, fl_lerpSpeed);
EnablePlayerControl();
}
restores camera and control