Unity yield WaitForSeconds(1);

IEnumerator WaitFunction (float delay) {
float timer = Time.time + delay;
while (Time.time < timer) {
yield return null;
}
}
IEnumerator Start () {
yield return StartCoroutine(WaitFunction (1.0f));
print (“1”);
yield return StartCoroutine(WaitFunction (2.0f));
print (“2”);

}