IEnumerator LaunchText()
    {
        float oldMoveSpeed = snowBallScript.movementSpeed;

        snowBallScript.SlowDown();
        fader.FadeIn(mightNotMeanMuchText);
        yield return(new WaitForSeconds(2));

        fader.FadeIn(iBelieveInYOuText);
        instructionScript.FadeOut();
        yield return(new WaitForSeconds(2));

        fader.FadeIn(followYourDreamsText);
        yield return(new WaitForSeconds(2));

        snowBallScript.movementSpeed = oldMoveSpeed;
        snowBallScript.maxScale      = snowBallScript.maxScale * 15;
        fader.FadeOut(mightNotMeanMuchText);
        yield return(new WaitForSeconds(1));

        fader.FadeOut(iBelieveInYOuText);
        yield return(new WaitForSeconds(1));

        fader.FadeOut(followYourDreamsText);

        yield return(new WaitForSeconds(4));

        instructionScript.UpdateInstructionText("Hold W to keep holding on");

        camera.RotateCamera(200);
        hasBeenTriggered = true;
        yield return(new WaitForSeconds(2));

        hasBeenPromptedToHoldOn = true;
    }
    IEnumerator LaunchNewHouseText()
    {
        float oldMoveSpeed = snowBallScript.movementSpeed;

        snowBallScript.SlowDown();
        fader.FadeIn(mightGetLostText);
        yield return(new WaitForSeconds(4));

        fader.FadeIn(youJustCantStopText);
        instructionScript.UpdateInstructionText("Hold W to not stop");
        yield return(new WaitForSeconds(1.5f));

        fader.FadeOut(mightGetLostText);
        fader.FadeOut(youJustCantStopText);
        Destroy(lightpost);
        yield return(new WaitForSeconds(1.5f));

        snowBallScript.movementSpeed = oldMoveSpeed;
        camera.RotateCamera(220);
        yield return(new WaitForSeconds(8));

        fader.FadeIn(youHavetToKeepMovingOnText);
        instructionScript.FadeOut();
        yield return(new WaitForSeconds(2));

        instructionScript.UpdateInstructionText("Hold W to keep moving on");
        yield return(new WaitForSeconds(3));
    }
Example #3
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.W) && !hasStartedMoving)
     {
         hasStartedMoving = true;
         audio.Play();
         FadeOut();
         fader.FadeIn(yourHomeText);
     }
 }
    IEnumerator LaunchText()
    {
        float oldMoveSpeed = snowBallScript.movementSpeed;

        snowBallScript.SlowDown();
        fader.FadeIn(onlyWayForwardText);
        yield return(new WaitForSeconds(1));

        fader.FadeIn(soLetsKeepMovingText);
        yield return(new WaitForSeconds(3));

        snowBallScript.movementSpeed = oldMoveSpeed;
        instructionScript.UpdateInstructionText("Hold W to keep going");
        hasBeenTriggered = true;
    }
Example #5
0
    private IEnumerator ShowSimplerText()
    {
        Debug.Log("Launch");
        yield return(new WaitForSeconds(6));

        Debug.Log("Text");
        textHasBeenShown = true;
        fader.FadeIn(simplerText);
    }
Example #6
0
    IEnumerator LaunchNewHouseText()
    {
        float oldMoveSpeed = snowBallScript.movementSpeed;

        snowBallScript.SlowDown();
        fader.FadeIn(newHouseText);
        yield return(new WaitForSeconds(4));

        fader.FadeIn(itsNotText);
        yield return(new WaitForSeconds(2));

        instructionScript.UpdateInstructionText("Hold W to feel like home");
        yield return(new WaitForSeconds(1));

        snowBallScript.movementSpeed = oldMoveSpeed;
        yield return(new WaitForSeconds(3));

        instructionScript.FadeOut();
    }
Example #7
0
    IEnumerator LaunchOutgrowText()
    {
        float oldSpeed = snowBallScript.movementSpeed;

        snowBallScript.SlowDown();
        fader.FadeIn(tooBigText);
        yield return(new WaitForSeconds(5));

        fader.FadeIn(everybodyDoesText);
        yield return(new WaitForSeconds(2));

        fader.FadeOut(tooBigText);
        fader.FadeOut(everybodyDoesText);
        fader.FadeIn(soYouMoveOnText);
        snowBallScript.movementSpeed = oldSpeed;
        yield return(new WaitForSeconds(1));

        instructionScript.UpdateInstructionText("Hold W to move on");
        yield return(new WaitForSeconds(4));

        instructionScript.FadeOut();
        GetComponent <OutgrowTextLauncherScript>().enabled = false;
    }
    IEnumerator LaunchText()
    {
        float oldMoveSpeed = snowBallScript.movementSpeed;

        snowBallScript.SlowDown();
        fader.FadeIn(whereDoYouThinkYoureHeadedText);
        instructionScript.FadeOut();
        yield return(new WaitForSeconds(3));

        fader.FadeOut(whereDoYouThinkYoureHeadedText);
        yield return(new WaitForSeconds(1.5f));

        snowBallScript.movementSpeed = oldMoveSpeed;
        camera.RotateCamera(250);
        hasBeenTriggered = true;
        instructionScript.UpdateInstructionText("Hold W to head towards the unknown");
    }