Unity 5.4 Animator's Animation/States Play/Stop

Hi, How possible to play animations or states in Animators with C# (non Legacy)?
Animations (RightAnim | LeftAnim)

using UnityEngine;
using System.Collections;

public class AnimatorPS: MonoBehaviour
{
Animator anim;
int RightAnim=Animator.StringToHash(“RightAnim”);
int LeftAnim=Animator.StringToHash(“LeftAnim”);

voidStart()
{
anim=GetComponent();
anim.Play(“RightAnim”);
}

}

Animations using the Mecanim system aren’t played explicitly like with the legacy animation system- you either fire off a trigger or simply assign some new values in the animator that it’s tracking, and it handles which animation it’s supposed to play on its own. I highly recommend watching the tutorial videos on the subject first, as there are a lot of different moving parts here and you really need to have a basic grasp of all of them to get things working together properly.