Search Unity

I'm at 10:35 of this tutorial and I ran into this error.

Discussion in 'Editor & General Support' started by Brian-Washechek, Jun 2, 2020.

  1. Brian-Washechek

    Brian-Washechek

    Joined:
    Aug 5, 2015
    Posts:
    846
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,911
    Code (CSharp):
    1. public IEnumerable RespawnCo()
    Should be this instead:
    Code (CSharp):
    1. public IEnumerator RespawnCo()
    Unity Coroutines can take IEnumerators but not IEnumerables.
     
  3. Brian-Washechek

    Brian-Washechek

    Joined:
    Aug 5, 2015
    Posts:
    846
    Ok. A simple typo on my part: IEnumerable to IEnumerator. I don't really understand it at this point, but thanks anyways!