Ejemplo n.º 1
0
        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);
        }