Пример #1
0
    public void Pause(bool option)
    {
        if (option)
        {
            for (int i = 0; i < WorldSounds.Count; i++)
            {
                WorldSounds[i].PauseAll();
            }

            Music.PauseAll();
            Voice.Pause();
            Noise.PauseAll();
        }
        else
        {
            for (int i = 0; i < WorldSounds.Count; i++)
            {
                WorldSounds[i].ContinueAll();
            }

            Music.ContinueAll();
            Voice.Continue();
            Noise.ContinueAll();
        }
    }