public void AddPlaying(SoundHelperInstance s) { /* * instances.Remove(s); * if (instances.Count > mMaxInstances) * { * Update(); * if (instances.Count > mMaxInstances) * { * instances[0].Stop(); * } * } * instances.Add(s); */ }
public void AddPlaying(SoundHelperInstance s) { /* instances.Remove(s); if (instances.Count > mMaxInstances) { Update(); if (instances.Count > mMaxInstances) { instances[0].Stop(); } } instances.Add(s); */ }