unity, Destroy注意事项
摘要:
Destroy不是立即发生作用,而是推迟到帧末,所以下面代码是错误的: void OnTriggerEnter(Collider other){ if (other.gameObject.tag == "coin") { m_score++; Destroy(other.gameObject); 阅读全文
posted @ 2015-07-05 12:22 wantnon 阅读(790) 评论(0) 推荐(0) 编辑