日期:2014-05-16  浏览次数:20379 次

unity中js脚本与c#脚本互相调用

test1.js

  1. function?OnGUI()??
  2. {???
  3. if(GUI.Button(Rect(25,25,100,30),"JS?Call?CS"?))??
  4. {??
  5. var?c?=?gameObject.GetComponent(