using System.Collections; using System.Collections.Generic; using UnityEngine; public class Rotate : MonoBehaviour { private float origionZ; private Quaternion targetRotation; ; ; private bool i; // Use this for initialization void Start () { origion…
这篇文章很不错的问题,推荐阅读英文原版: Introduction to Coroutines Scripting with Coroutines 这篇文章转自:http://blog.csdn.net/huang9012/article/details/38492937 协程介绍 在Unity中,协程(Coroutines)的形式是我最喜欢的功能之一,几乎在所有的项目中,我都会使用它来控制运动,序列,以及对象的行为.在这个教程中,我将会说明协程是如何工作的,并且会附上一些例子来介绍它的用法…
原地址:http://www.unity蛮牛.com/thread-20005-1-1.html Tips for Creating Better Games and Working More Efficiently in unity 在unity中高效工作以及开发更卓越的游戏的几点建议(下) 小编的话:(上)篇的链接是 http://www.unity蛮牛.com/thread-19974-1-1.html 福利又来了!大家马上看看(下)篇吧.这是蛮牛译馆中的热心译友Dusthand翻译的文章…