Have camera follow players horizontal axis only C#

Hello, i was wondering if anyone knew how to make it so that my camera in unity, only follows the charcters horizontal axis ( x axis i think ). My game is a platformer, but i do not want my camera to move up and down, i c#. Thank you :smiley:

http://answers.unity3d.com/questions/886164/how-to-get-an-object-to-follow-you-along-a-certain.html