title: Unity, C# | How do I have a wait time between methods?
body: <p>My goal: To get my snail to seem like it's moving on its own.
           Example: Going right for a few seconds, going left for a few seconds, staying in one place for a few seconds.</p>
  
  <p>Current Status: Snail sits still in one place when I attempt to use <code>WaitForSeconds</code></p>
  
  <p>Without <code>WaitForSeconds</code>, my snail changes directions back and forth successfully(Except doing this really fast)</p>
  
  <p>I've only started learning Unity and C# yesterday. Any tips/suggestions would be of much help, even if it's not on my original question.
  If there's anything else I can do to help you help me, let me know! :)</p>
  
  <pre><code>using UnityEngine;
  using System.Collections;
  
  public class SnailMove : MonoBehaviour {
  void Start()
  {
  
  }
  // Use this for initialization
  void Update () 
  {
      Waiting();
  }
  
  // Update is called once per frame
  void Movement () 
  {
  
      int direct = Random.Range(-1, 2);
      if (direct == 1) 
      {
          transform.Translate(Vector3.left * 1f * Time.deltaTime);
          transform.eulerAngles = new Vector2(0,180);
      }
      if (direct == -1)
      {
          transform.Translate(Vector3.left * 1f * Time.deltaTime);
          transform.eulerAngles = new Vector2(0,0);
      }
  }
    IEnumerator Waiting()
      {
      Movement ();
      yield return new WaitForSeconds (5);
      }
  }
  </code></pre>