Skip to content

How to do a Coroutine in Unity

void Start()

OR

other Method()

{

StartCoroutine(NameOfMethod());

}

IEnumerator NameOfMethod()

{

yield return new WaitForSeconds(0.0f);

[statement here];

}

Leave a Reply

Your email address will not be published. Required fields are marked *