private IEnumerator StartRoom() { audio.PlaySound(1); // collapse yield return(new WaitForSeconds(audio.GetSoundLength(1))); audio.PlayVoice(35); // "Hallo?" yield return(new WaitForSeconds(audio.GetVoiceLength(35))); // initialize pipes lighting.SwitchToLights(Light.PipesLeft, Light.PipesRight); Room.GetGame <PipesGame>().Initialize(GameDifficulty.Medium); }
private IEnumerator GameInitialized() { audio.PlayVoice(84); // introduction yield return(new WaitForSeconds(audio.GetVoiceLength(84))); lighting.SwitchToLights(Light.CraneLeft, Light.CraneRight); audio.PlayVoice(85); // explanation of game mechanics yield return(new WaitForSeconds(audio.GetVoiceLength(85))); game.Start(); }
private IEnumerator GameInitialized(DynamiteGame game) { lighting.SwitchToLights(Light.Dynamite); audio.PlayVoice(131); // "Die Wand hier..." yield return(new WaitForSeconds(audio.GetVoiceLength(131))); int instructionsVoiceClip = instructionsVoiceClips[game.ScenarioNumber - 1]; audio.PlayVoice(instructionsVoiceClip); // "Benutzt Sprengtafel..." yield return(new WaitForSeconds(audio.GetVoiceLength(instructionsVoiceClip))); audio.PlayVoice(136); // "Wenn alles richtig platziert ist..." yield return(new WaitForSeconds(audio.GetVoiceLength(136))); game.Start(); }
private IEnumerator GameInitialized(TriggersGame game) { audio.PlayVoice(163); // "Jetzt der letzte Schritt." yield return(new WaitForSeconds(audio.GetVoiceLength(163))); lighting.SwitchToLights(Light.Trigger); audio.PlayVoice(164); // "Seht ihr den Sprengkasten..." yield return(new WaitForSeconds(audio.GetVoiceLength(164))); if (game.Difficulty == GameDifficulty.Hard) { audio.PlayVoice(166); // "Es kann vorkommen..." yield return(new WaitForSeconds(audio.GetVoiceLength(166))); } game.Start(); }