01 2013 档案
摘要:关于这次的文章,主要需要涉及到以下内容:1.U3D中用代码动态生成片并设置UV坐标显示图片; 如果这方面还不知道,可以看看另篇文章:http://blog.csdn.net/midashao/article/details/81391092.C#版本的LitJson库的简单使用; LitJson官方地址:http://litjson.sourceforge.net/,本人也是刚使用这条内裤,如果不知道Json是神马东西,问下谷哥和度娘吧~什么是TexturePacker? 用过cocos2d的同学应该对这个比较了解吧(了解到可以直接无视下面的解释了~),不了解也没关系,TexturePac..
阅读全文
摘要: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
阅读全文
摘要:1.Shoot,Throw|Instantiatevar speed = 3.0;var grenadePrefab:Transform; function Update () { //find out if a fire button is pressed if(Input.GetButtonDown("Fire1")) { if(Collisions.GRENADE_AMMO > 0) { //create the prefab var grenade = Instantiate(grenadePre...
阅读全文

浙公网安备 33010602011771号