Performance optimisation

the unity profiler throw that the if statements used about 7% of cpu
only writing to the console while recording,with the switch case use
led than 1% doing the same thing with fewer lines of code
Basic animation at run-time

its recording the position of the touch, when the touch ends then it
creates 2 AnimationCurves for x and y, the touch recording its buggy tho