Beispiel #1
0
 /// <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++;
 }
Beispiel #2
0
 internal void DestroySoundInstance(SoundInstance instance)
 {
     InstanceToListener.Remove(instance);
     instance.Dispose();
 }