IEnumerator MyCoroutine() { yield return new WaitForSeconds(5f); //code here will execute after 5 seconds }