public SoundEffect(string file) { try { data = GameEngine.QueryComponent<AudioEngine>().CreateSoundEffect(file); } catch (InvalidOperationException ex) { throw new InvalidOperationException( "A sound effect can only be created if a sound engine ist registered.", ex); } }
public SoundEffect(string file) { try { data = GameEngine.QueryComponent <AudioEngine>().CreateSoundEffect(file); } catch (InvalidOperationException ex) { throw new InvalidOperationException( "A sound effect can only be created if a sound engine ist registered.", ex); } }