Beispiel #1
0
    public IEnumerator WinRoutine()
    {
        halting             = true;
        rightDisplayEnabled = false;
        narrator.Clear();
        yield return(fader.FadeRoutine(fader.startFade, false));

        postMortem.text  = "Journeyed all the way to the final floor and left with a kidnapped prince.";
        postMortem.text += "\n\nPlus looted " + pc.gold + " gold!";
        postMortem.text  = postMortem.text.Replace("\\n", "\n");
        yield return(CoUtils.RunTween(GetComponent <CanvasGroup>().DOFade(0.0f, 3.0f)));

        yield return(CoUtils.RunTween(postMortem.GetComponent <CanvasGroup>().DOFade(1.0f, 1.0f)));

        yield return(CoUtils.Wait(3.0f));

        yield return(CoUtils.RunTween(postMortem.GetComponent <CanvasGroup>().DOFade(0.0f, 3.0f)));

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