unity c# change animation code example Example: unity c# change animation gameObject.GetComponent().Play(string animationName);