How to do a Coroutine in Unity
void Start() OR other Method() { StartCoroutine(NameOfMethod()); } IEnumerator NameOfMethod() { yield return new WaitForSeconds(0.0f); [statement here]; }
void Start() OR other Method() { StartCoroutine(NameOfMethod()); } IEnumerator NameOfMethod() { yield return new WaitForSeconds(0.0f); [statement here]; }