how to change the animation property using script in unity code example
Example: unity c# change animation
gameObject.GetComponent<Animator>().Play(string animationName);
gameObject.GetComponent<Animator>().Play(string animationName);