You can use a network state to synchronize which animation is playing for an object. There are two main options that you can choose from:
Use the Animator.Play method to immediately play an animation clip for an object. For more information, see Using Animator.Play(string).
Use the Animator.SetTrigger method to activate predefined transitions between animation clips. For more information about how to define transitions, see Defining Animator transitions. For information about how to synchronize trigger activation, see Using Animator.SetTrigger(string).