摘要: 1.把开始时间设定到播放完成的时间点,作为倒放的起点 animation["clip"].time=animation["clip"].clip.length; animation["clip"].speed=-1; animation.Play("clip");2.寻找场景中物体var door = GameObject.Find("door").transform;3.全局变量用法,A.js 里的 static var AAA 到 B.js 里调用方式为 A.AAA4.function Aw 阅读全文
posted @ 2013-01-17 16:54 Qiengo 阅读(455) 评论(0) 推荐(0) 编辑
摘要: Directly using IEnumerator for iterationsEnumerators are used to read data in the collection. The foreach statement hides the complexity of the enumerators, but you can directly manipulate IEnumerator for customized iterations. Let's do an example:Code:List<string> myList =newList<strin 阅读全文
posted @ 2013-01-17 09:59 Qiengo 阅读(325) 评论(0) 推荐(0) 编辑