Ejemplo n.º 1
0
    IEnumerator RightBeforeTutorialGen()
    {
        uiController.FadeIntroText();

        yield return(new WaitForSeconds(1f));

        fuelLeft.Value = 0.5f;
        StartCoroutine(thruster.ThrusterSputsOut());

        yield return(new WaitForSeconds(3.25f));

        // Oh no! we've run out of fuel!
        uiController.ShowTutorialFuelText();
        tutorialTextEvent.Raise();

        yield return(new WaitForSeconds(2.8f));

        // And we are going to run out of oxygen!
        oxygenLeft.Value = 32.5f;
        uiController.ShowTutorialOxygenText();
        tutorialTextEvent.Raise();

        yield return(new WaitForSeconds(2.8f));

        uiController.ShowTutorialWeMustGetBackToOurHomePlanetText();
        tutorialTextEvent.Raise();

        yield return(new WaitForSeconds(2.8f));

        uiController.ShowTutorialPressMToToggleMapText();
        tutorialTextEvent.Raise();
        ts = TutState.MPrompted;

        //yield return new WaitForSeconds(2.8f);

        // Press 'M' to view the map

        yield return(new WaitUntil(() => ts == TutState.MapToggled));

        Debug.Log("ayy baybayboobe");

        tutorialPartOneFinishedEvent.Raise();

        // start tutorial level ...
        //
    }