IEnumerator code example
Example 1: IEnumerator
void start()
StartCoroutine(Text());
IEnumerator Text() // <- its a standalone method
{
Debug.Log("Hello")
yield return new WaitForSeconds(3)
Debug.Log("ByeBye")
}
Example 2: new ienumerable
IEnumerable<object> en = new List<object>();