Exemplo n.º 1
0
        /// Resumes the playback of paused sound sources.
        ///
        /// @param %pauseSet    An optional SimSet which contains the paused sound
        /// sources to be resumed.  If not specified the global
        /// SFXPausedSet is used.
        /// @deprecated
        public static void sfxResume(SimSet pauseSet = null)
        {
            if (pauseSet == null)
            {
                pauseSet = SFXPausedSet;
            }

            int count = pauseSet.getCount();

            for (uint i = 0; i < count; i++)
            {
                SFXSource source = pauseSet.getObject(i).As <SFXSource>();
                source.play();
            }

            // Clear our pause set... the caller is left
            // to clear his own if he passed one.
            pauseSet.clear();
        }