摘要: 由于Unity3D中一些腳本的方法只能用在JS中,在C#中是無效的,而C#可以與服務器端通訊,JS本身卻不行。所以勢必會遇到這兩種語言腳本中方法的互相調用,以下是示例。兩個文件 test1.js 和 test2.cstest1.jsfunctionOnGUI(){if(GUI.Button(Rect(25,25,100,30),"JS Call CS")){varc=gameObject.GetComponent("test2");c.PrintTest();}}functiontestPrint(){print("CS CallJS" 阅读全文
posted @ 2012-05-24 23:26 solq 阅读(11985) 评论(0) 推荐(1) 编辑
摘要: DFResLoader loader = new DFResLoader(Main.class.getClassLoader());loader.init(new FileInputStream("D:\\Program Files\\SFS2X-RC1\\SFS2X\\lib\\Lib\\sfs2x-lms.jar")); long expireTime = 4476614400000l;//new Date(2111-1900, 10, 11).getTime(); ISFSObject license = new SFSObject();lic... 阅读全文
posted @ 2012-05-24 21:13 solq 阅读(1536) 评论(0) 推荐(0) 编辑
摘要: http://game.ceeger.com/forum/read.php?tid=1257&fpage=2&page=1自己开发一个 unity gui sgui正在努力完善中。。。。。。。。。。。争取下个星期发布.....自己写了一个UI插件 支持css ,,目前正在开发阶段。。。。多谢大家支持,CSS 解析部份已经完善了。。。加入 ui anim测试地址http://qtqq.sinaapp.com/mygui/http://qtqq.sinaapp.com/mygui2 阅读全文
posted @ 2012-05-24 15:50 solq 阅读(425) 评论(0) 推荐(0) 编辑