Beispiel #1
0
        public void Remove(SourceComponent audioSource)
        {
            SoundToolKitDebug.Assert(audioSource != null, "Source component is null");

            if (AudioSources.Contains(audioSource))
            {
                m_audioSources.Remove(audioSource);
            }
            else
            {
                SoundToolKitDebug.LogWarning("Source component wasn't registered.");
            }
        }
Beispiel #2
0
        public void Add(SourceComponent audioSource)
        {
            // <STK.LITE> - Why are we even here?
            if (AudioSources.Count >= StkLite.AvailableSources())
            {
                return;
            }
            // </STK.LITE>

            SoundToolKitDebug.Assert(audioSource != null, "Source component is null");

            if (!AudioSources.Contains(audioSource))
            {
                m_audioSources.Add(audioSource);
            }
            else
            {
                SoundToolKitDebug.LogWarning("Source component already registered.");
            }
        }