Particle Attractor

Problem: Unity allows particles to be affected by forces and many paramters for adjusting their speed and direction, but it doesn't supply a way to attract particles to a particular point. Without this, either the functionality has to be forgone, or a cumbersome and inflexible workaround has to be used, such as combining the other control systems to roughly approximate the effect.

Solution: Particle Attractor, a script which the user applies to an object, and attracts particles of a specified particle system. This code addresses each active particle and modifies its movement directly.