unity csharp change animation

Code Example - unity csharp change animation

                
                        gameObject.GetComponent<Animator>().Play(string animationName);