Esempio n. 1
0
    /// <summary>
    /// Print text to screen.
    /// </summary>
    /// <returns></returns>
    private IEnumerator StartUpTextSequence()
    {
        yield return(new WaitForSeconds(2));

        textWriter.DisplayText(startUpLines[0].lines);
        yield return(StartCoroutine(ClearTextAfterWait(10)));

        textWriter.DisplayText(startUpLines[1].lines);
        yield return(StartCoroutine(ClearTextAfterWait(12)));

        textWriter.DisplayText(startUpLines[2].lines);
        string originalText = GetFullString(startUpLines[2].lines);

        StartCoroutine(AnimateEllipses(originalText));
        StartCoroutine(LoadNextScene());
    }
Esempio n. 2
0
    /// <summary>
    /// When the player transfers power to a cryochamber for the first time, Plum tells them to enter the simulations.
    /// </summary>
    private void DisplayPlumMessage()
    {
        // Clear text.
        textWriter.DisplayText("");

        // Adjust text speed to match audio clip.
        textWriter.ChangeTypingSpeed(textSpeedForPlumLine);

        // Play audio clip.
        plumAudioSource.Play();

        // print text while the audio clip is playing.
        textWriter.DisplayText(plumLines);
    }
Esempio n. 3
0
    /// <summary>
    /// Print the player's new objective to the HUD canvas.
    /// </summary>
    private void ChangeText()
    {
        textWriter.DisplayText(objective);

        hasChangedText = true;
    }
Esempio n. 4
0
 /// <summary>
 /// When the player emerges from the elevator, their next objective is to activate the SOS beacon.
 /// </summary>
 private void SetSOSText()
 {
     textWriter.DisplayText(secondObjectiveLines[0].lines);
 }