摘要:
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 阅读全文
摘要:
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 阅读全文