标签:c#
if (GameObject.Find ("wuti"))transform.FindChild("wuti").SendMessage("serips");
-------------------------------------
var main_texture:Texture2D[];
var powergui_bl:GUITexture;
powrgui_bl.texture=Texture[charge];
wuti.material.mainTexture = main_texxture[chanrge];
————————————
wuti.AddComopnent ("scrips");
var Script:Object=wuti.GetComponent("scripts");
Destroy(Script);
速度销毁 修改门灯并寻找子物体发送代码 更换纹理图片 物体添加删除代码
标签:c#
原文地址:http://blog.csdn.net/haifeng619/article/details/46559097