/// <summary> /// Register a new instance to the soundEffect. /// </summary> /// <param name="instance">new instance to register.</param> protected void RegisterInstance(SoundInstance instance) { Instances.Add(instance); IntancesCreationCount++; }
internal void DestroySoundInstance(SoundInstance instance) { InstanceToListener.Remove(instance); instance.Dispose(); }