bind "xxx.js" to object using script

var gobj:GameObject;

gobj=(GameObject.Find("objectName")); 

gobj.AddComponent("xxx");

猜你喜欢

转载自blog.csdn.net/kong5461/article/details/23619851
今日推荐