// Plays the turorial in the right order. public IEnumerator StartTutorial() { Debug.Log("Hej"); // Intro yield return(StartCoroutine(typer.TypeMessage(0))); yield return(StartCoroutine(WaitForButtonPress())); // Look around yield return(StartCoroutine(typer.TypeMessage(1))); yield return(StartCoroutine(LookAtSigns())); // Move around yield return(StartCoroutine(typer.TypeMessage(2))); yield return(StartCoroutine(MoveAround())); // Turn around yield return(StartCoroutine(typer.TypeMessage(3))); yield return(StartCoroutine(TurnAround180())); // Fulhack to let sound effect finish yield return(new WaitForSeconds(0.2f)); gameObject.SetActive(false); }
// Plays the turorial in the desired order. public IEnumerator StartTutorial() { // Intro yield return(StartCoroutine(typer.TypeMessage(0))); yield return(StartCoroutine(WaitForButtonPress())); // Spawn Gramophone MoveInGramophones(); yield return(StartCoroutine(typer.TypeMessage(1))); yield return(StartCoroutine(WaitForButtonPress())); // Turn down lights yield return(StartCoroutine(typer.TypeMessage(2))); yield return(StartCoroutine(lightController.FadeOut())); backgroundBirds.Stop(); yield return(new WaitForSeconds(1)); aud.PlayOneShot(accept); yield return(StartCoroutine(typer.TypeMessage(3))); yield return(StartCoroutine(WaitForButtonPress())); // Make user Speak yield return(StartCoroutine(typer.TypeMessage(4))); yield return(StartCoroutine(WaitForUserToMakeNoice())); yield return(StartCoroutine(typer.TypeMessage(5))); yield return(StartCoroutine(WaitForButtonPress())); // Find goal yield return(StartCoroutine(typer.TypeMessage(6))); goal.SetActive(true); yield return(StartCoroutine(WaitForButtonPress())); // Open door yield return(StartCoroutine(typer.TypeMessage(7))); yield return(StartCoroutine(WaitForButtonPress())); yield return(StartCoroutine(typer.TypeMessage(8))); pathForward.SetActive(true); walkOverEdgeCollider.SetActive(false); }
// Plays the turorial in the desired order. public IEnumerator StartTutorial() { MoveInGramophones(); lightController.TurnOff(); backgroundBirds.Stop(); gramophonePillar.GetComponent <ChangeMaterial>().SwapMaterial(); // Intro yield return(StartCoroutine(typer.TypeMessage(0))); yield return(StartCoroutine(WaitForButtonPress())); // Movement Explained yield return(StartCoroutine(typer.TypeMessage(1))); controllsImg.SetActive(true); yield return(StartCoroutine(WaitForButtonPress())); controllsImg.SetActive(false); // Use voice to see and open doors yield return(StartCoroutine(typer.TypeMessage(2))); yield return(StartCoroutine(WaitForButtonPress())); // Find Goal yield return(StartCoroutine(typer.TypeMessage(3))); goal.SetActive(true); yield return(StartCoroutine(WaitForButtonPress())); goal.SetActive(false); // Avoid Enemies yield return(StartCoroutine(typer.TypeMessage(4))); chefDisp.SetActive(true); yield return(StartCoroutine(WaitForButtonPress())); chefDisp.SetActive(false); // Press to start game yield return(StartCoroutine(typer.TypeMessage(5))); yield return(StartCoroutine(WaitForButtonPress())); EnterRealGame(); }