internal static ParticleEmitter TryGet(IntPtr handle) { #if !(RELEASE && RELEASE_DISABLE_CHECKS) if (handle == IntPtr.Zero) throw new NullPointerException(); #endif var particleEmitter = Emitters.FirstOrDefault(x => x.Handle == handle); if (particleEmitter == null) { particleEmitter = new ParticleEmitter(handle); Emitters.Add(particleEmitter); } return particleEmitter; }