While our character on ladder it’s irrelevant to be in idle mode. So here is my code to make our character climbing position but stopping its movement so it looks better
if(playerRb.gravityScale == 0 && CrossPlatformInputManager.GetAxis("Vertical") == 0) //Setting animation speed to zero when stop on ladder
{
playerAnim.speed = 0;
}
if(playerRb.gravityScale == 0 && CrossPlatformInputManager.GetAxis("Vertical") != 0) //Setting animation speed to 1 while moving on ladder
{
playerAnim.speed = 3;
}