Пример #1
0
        private void PlayHeroSelected(eHero hero)
        {
            switch (hero)
            {
            case eHero.Barbarian:
                sfxChannel = soundProvider.PlaySfx(sfxDictionary[ResourcePaths.SFXBarbarianSelect]);
                break;

            case eHero.Necromancer:
                sfxChannel = soundProvider.PlaySfx(sfxDictionary[ResourcePaths.SFXNecromancerSelect]);
                break;

            case eHero.Paladin:
                sfxChannel = soundProvider.PlaySfx(sfxDictionary[ResourcePaths.SFXPaladinSelect]);
                break;

            case eHero.Assassin:
                sfxChannel = soundProvider.PlaySfx(sfxDictionary[ResourcePaths.SFXAssassinSelect]);
                break;

            case eHero.Sorceress:
                sfxChannel = soundProvider.PlaySfx(sfxDictionary[ResourcePaths.SFXSorceressSelect]);
                break;

            case eHero.Amazon:
                sfxChannel = soundProvider.PlaySfx(sfxDictionary[ResourcePaths.SFXAmazonSelect]);
                break;

            case eHero.Druid:
                sfxChannel = soundProvider.PlaySfx(sfxDictionary[ResourcePaths.SFXDruidSelect]);
                break;

            default:
                break;
            }
        }