コード例 #1
0
ファイル: SoundManagerCS.cs プロジェクト: lovigame/alalei
    /*
     *	FUNCTION: Stops all sounds except background music
     */
    public void stopAllSounds()
    {
        for (int i = 0; i < CharacterSounds.GetValues(typeof(CharacterSounds)).Length; i++)
        {
            asCharacterSounds [i].Stop();
        }
        for (int i = 0; i < PowerupSounds.GetValues(typeof(PowerupSounds)).Length; i++)
        {
            asPowerupSounds [i].Stop();
        }
        for (int i = 0; i < MenuSounds.GetValues(typeof(MenuSounds)).Length; i++)
        {
            asMenuSounds [i].Stop();
        }
        for (int i = 0; i < EnemySounds.GetValues(typeof(EnemySounds)).Length; i++)
        {
            asEnemySounds [i].Stop();
        }

        bFootstepsPlaying = false;
    }