private bool CanInheritVelocity(ParticleSystem s) { return !((IEnumerable<Rigidbody>) s.GetComponentsInParent<Rigidbody>()).Any<Rigidbody>((Func<Rigidbody, bool>) (o => { if (!o.isKinematic) return o.interpolation == RigidbodyInterpolation.None; return false; })) && !((IEnumerable<Rigidbody2D>) s.GetComponentsInParent<Rigidbody2D>()).Any<Rigidbody2D>((Func<Rigidbody2D, bool>) (o => { if (!o.isKinematic) return o.interpolation == RigidbodyInterpolation2D.None; return false; })); }