title: Switching between animations in Unity
body: <p>I have been working on this all day yesterday. Attempting a few different methods. But I can't seem to figure it out. I am new with Unity but until this point everything was going smoothly. I am trying to get my character to switch between the 'walking' and 'idle' animations i've made. </p>
  
  <pre><code>if(Input.GetKey ("left")){
  transform.position.x = transform.position.x - 0.1;
  animator.Play("walking");
  }
  </code></pre>