Lerp to position in instantiated prefab?

Hey guys,

I'm wondering if it's possible to Lerp to a target position in an instantiated prefab. Maybe with a target that has an appropriate tag? Not sure. The target position would be on a particular axis. X or Y.

I'm new to Lerp so I'm trying to feel my way around.

Thanks in advance for any and all help!

http://unity3d.com/support/documentation/ScriptReference/Vector3.Lerp.html

Example code shows how to make an object move somewhere (Hint, read the green text).

http://unity3d.com/support/documentation/ScriptReference/index.Accessing_Other_Game_Objects.html

Look for number 3.

This should help. Reason for this is so you can look around the API and get a feel on how to use it, as that's how you'll learn most of your scripting...

So... get target object, put that in a spot on the lerp, then get the actual target, put that on the other lerp, then add in the time to do it... now I don't know how you want this to start... But I'll assume it is when it's instantiated... So, put that in an function Awake(), on to the actual target, and then you don't really need the second link, as you can do this.gameObject, and then the other object to move to it is already there... So just make that a var...

But hope this helps =).