I'm not sure how to assign speed to my Animation curve:
public float speed;
public AnimationCurve ac;
transform.position = Vector3.Lerp(pos1, pos2, ac.Evaluate( ??? ));
I'm using it inside a coroutine.
I'm not sure how to assign speed to my Animation curve:
public float speed;
public AnimationCurve ac;
transform.position = Vector3.Lerp(pos1, pos2, ac.Evaluate( ??? ));
I'm using it inside a coroutine.
You can write:
According to Unity docs: