U3D学习08-异步、协程

1、调用
invoke不能传参,
2、协程(不是线程,拥有自己独立的执行序列)
Coroutine(尽可能减少计算,提高运行效率)
需要迭代器IEnumerate,迭代器中有返回方法yield
协程的目的:运行的同时加载资源
任何事件都可以做成协程。
 
startCoroutine
stopCoroutine
stopAllCoroutine
 
3、sendMessage
4、broadcastMessage
原文地址:https://www.cnblogs.com/joxin/p/9836184.html