Пример #1
0
        public SoundTestSystem(IWorld world, ISoundSystem soundSystem, IInputManager inputManager) : base(world, world.EntityFilter(10).With <SoundClipComponent>())
        {
            _keyboard = inputManager.Keyboard;
            _sound    = Map <SoundClipComponent>();

            _soundEffects = soundSystem.GetPlayer("SoundEffects");
            _music        = soundSystem.GetPlayer("Music");

            _volume = _soundEffects.GetVolume();
        }