If I'm not wrong, you want to equalise y axis of your object to the y axis of your player. Then try using [Mathf.Lerp][1] to achieve that.
[1]: http://docs.unity3d.com/Documentation/ScriptReference/Mathf.Lerp.html
↧