Symptoms
When trying to enter play mode, I am receiving the error below:
error CS1624: The body of `__' cannot be an iterator block because `__'
is not an iterator interface type
Cause
The CS1624 warning is caused when an iterator accessor is used but the return type is not one of the iterator interface types: IEnumerable, IEnumerable<T>, IEnumerator,IEnumerator<T>.
This example uses an iterator accessor to start a coroutine in a method that uses "void" as the return type for the WaitCheck() method.
Errors displayed in this example:
error CS1624: The body of `ExampleScript.WaitCheck()' cannot be an
iterator block because `void'is not an iterator interface type
Resolution
To fix the CS1624 error you will need to use one of the iterator interface types as a return type.
The example is fixed by using the IEnumerator iterator interface type for the WaitCheck function.
More Information
https://msdn.microsoft.com/en-us/library/7e87ybkb(v=vs.90).aspx