void Start() { StartCoroutine("func"); // Start coroutine named "func" } IEnumerator func() { Debug.Log("Hello"); yield return new WaitForSecondsRealtime(1); //Wait 1 second Debug.Log("World"); }