Automatic camera movement

How can I make camera move up faster and faster as the game goes. I am using transform.translate but I have a lot of if statements in the update so It goes faster after certain position but it slows the game and also has some bugs when transfered to phone. Is there any other way?

please explain question in briefly give some code and images if possible