Adding a delay to a very simple pong AI

I’m learning unity and decided to make pong since it’s pretty easy to make and I’d learn some stuff doing it. Right now the enemy paddle just uses Lerp to follow the balls Y position. I want to make it so there’s a small delay for this, like the enemy paddle is always going towards the position of the ball .2 seconds ago. I just have no idea how to do this. I’m using C#.

Making a delay is easy. But the biggest mistake people make is not putting the return time. is must be an IEnumerator, not a void. Here is the code:

using UnityEngine;
using System.Collections;

public class Example : MonoBehaviour {
    IEnumerator Example() {
        print(Time.time);
        yield return new WaitForSeconds(5);
        print(Time.time);
    }
}

Have fun!