turn an object to left or right

I try to make an object move like a character in​​​​​​ game “Temple Run”. here is the link “Temple Run - YouTube”. The most important is at the corner. I want the the object stay in the middle of the road. What Should I do??? Please help!!! … thanks!!!

First let your character model move forward with a constant speed. Then detect the user input, if the swipe goes from left to right

localEulerAngles.y += 90 //turn right

else if it goes from right to left

localEulerAngles.y -= 90 //turn left