Climb animation in Update or FixedUpdate or LateUpdate?,

It’s my code.

public bool PlayerCanClimbTheLadder;
public Animator animator;

public void ClimbAnimation(){

	if (PlayerCanClimbTheLadder && Input.GetKey (KeyCode.W)) {

		animator.SetBool ("Ladder",true);
		GetComponent<Rigidbody2D> ().isKinematic = true;
		transform.Translate (new Vector2 (0, 2 * Time.deltaTime));

	} 

}
Is there any difference If I use this code in update or fixedUpdate or lateUpdate ?

,

You should check that in LateUpdate that occurs after the internal animation update in each loop.

Input should be in Update() so that there is no chance of having a frame in which you miss the player input.

FixedUpdate used where we need to apply continuous forces.
Physics calculations should be in FixedUpdate(), so that they are consistent and synchronized with the global physics timestep of the game.