标签:
使用协程实现比较方便,可以带参数。
void Start(){
StartCoroutine(delayLaunchRocket(rocket,2.0f));
}
IEnumerator delayLaunchRocket(Obj rocket,float delayTime){
yield return new WaitForSeconds (delayTime);
rocket.launch();
}
标签:
原文地址:http://www.cnblogs.com/wantnon/p/4382626.html