Handeling turns in a Temple Run Like game

I am trying to handle the turning but i have a problem with the rotation.
the problem is that the values that are in the y axis are from 0 - 360

when i get the player to rotate every thing is fine for the first 3 turn from
90 - 180 - 270 but when i go to 360 it starts to turn nonstop because of the change to 0.

i am having a hard time explaining the problem , how would you fix it or go about
turnning in an endless running game.

Quaternion.RotateTowards