摘要: 由于Unity3D中一些腳本的方法只能用在JS中,在C#中是無效的,而C#可以與服務器端通訊,JS本身卻不行。所以勢必會遇到這兩種語言腳本中方法的互相調用,以下是示例。兩個文件 test1.js 和 test2.cstest1.jsCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->function OnGUI(){ if(GUI.Button(Rect(25,25,100,30),"JS Call CS" )) { ... 阅读全文
posted @ 2013-03-19 00:00 Old.Cell 阅读(217) 评论(0) 推荐(0) 编辑