how to script a C# particle system that moves from one object to another?

I am making a weather system. And I want to make lightning hit objects. Example: Trees, Buildings, metal poles etc.

How would you go about doing this?

If you can I want a C# example.