예제 #1
0
    public virtual void SaySpeech()
    {
        interactText.SayText(speechLines[currentIndex]);
        currentIndex++;

        if (currentIndex >= speechLines.Length)
        {
            currentIndex = 0;
            interactText.EndText();
        }
    }
    private IEnumerator WinSpeech()
    {
        interactText.SayText("You   .   .   .   defeated me.");
        yield return(new WaitForSeconds(4));

        interactText.SayText("Just by <color=cyan>ACKNOWLEDGING</color> me.");
        yield return(new WaitForSeconds(4));

        interactText.SayText("You were able to stop my effects.");
        yield return(new WaitForSeconds(4));

        interactText.SayText("By <color=cyan>ACKNOWLEDGING</color> me.");
        yield return(new WaitForSeconds(4));

        interactText.SayText("   .   .   .");
        yield return(new WaitForSeconds(4));

        interactText.SayText("Is this how you defeated the <color=red>others</color>?");
        yield return(new WaitForSeconds(4));

        interactText.SayText("You saw them for what they really are: just <color=red>automated</color> <color=red>processes</color>?");
        yield return(new WaitForSeconds(4));

        interactText.SayText("And you took <color=cyan>control</color>?");
        yield return(new WaitForSeconds(4));

        interactText.SayText("Fascinating   .   .   .");
        yield return(new WaitForSeconds(4));

        interactText.SayText("You    are    <color=cyan>cognizant</color>.");
        yield return(new WaitForSeconds(2));

        fade.Play("Fade");
        yield return(new WaitForSeconds(3));

        SceneManager.LoadScene("Anchoring_Win", LoadSceneMode.Single);
    }