摘要: http://blog.csdn.net/huang9012/article/details/38492937总结:1.协程相当于多线程但不是,(尽管它们看上去是这样的),它们运行在同一线程中,跟普通的脚本一样 2.协程的方法必须返回值是IEnumerator 3.协程中经常使用yiel... 阅读全文
posted @ 2015-09-07 17:05 阿土仔 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 这里写得非常好了:http://blog.gamerisker.com/archives/347.html 阅读全文
posted @ 2015-09-07 08:56 阿土仔 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Vector3 pos=Camera.main.ScreenToWorldPoint(Input.GetTouch(0).position);类似的鼠标点击Camera.main.ScreenToWorldPoint(Input.mousePosition) 阅读全文
posted @ 2015-09-07 08:40 阿土仔 阅读(786) 评论(0) 推荐(0) 编辑