title: Unity Animation playing from coroutine
body: <p>As the title states the animation is not playing. the line telling it to play is in a coroutine and the code is before a waitforseconds(3f).</p>
  
  <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  using UnityEngine.SceneManagement;
  
  public class Play : MonoBehaviour {
  
  public Animator AnimatorRef;
  // Use this for initialization
  void Start () {
      if (AnimatorRef == null)
      {
          AnimatorRef = GetComponent&lt;Animator&gt;();
      }
  
  }
  
  public void PlayGame()
  {
      StartCoroutine(TitlePlay());
      Debug.Log("playing");
  }
  
  IEnumerator TitlePlay()
  {
      Debug.Log("playing1");
      AnimatorRef.SetBool("Enlarge", true);
      yield return new WaitForSeconds(3f);
      Debug.Log("playing2");
  
      SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
  }
  
  }
  </code></pre>
  
  <p>it grabs the animator reference fine and all three of the comments show.</p>