How to set position to frame with c# script ?

Hi,
How to set position to frame with c# script ?

example:
frame 1: position.x = 0
frame 2 : position.x = 100

may be, we use Animator.recorderStartTime ?
I dont know, please help me.
Thank you…

best regards
M Imam Alqamar Al Indunissy
Indonesia.

So you want to know what frame now and according to it change position? If so you can use Time.frameCount

You not say what frame you keep in mind, frame of renderer or frame of animation?