该文章持续更新!
- 协程的返回值必需是 IEnumerator
- 协程的参数不能加关键字 ref 或 out
- 在函数 Update 和 FixedUpdate 中不能使用 yield 语句,但可以启动协程
- yield return 语句不能位于 try-catch 语句块中,但可以位于 try-finally 中的 finally 语句块中
- yield return 语句不能放在匿名方法中
- yield return 语句不能放在 unsafe 语句块中
Unity随手机
原文:http://www.cnblogs.com/tongy0/p/7488701.html