unity激活物体的某一组件

1.得到物体code public GameObject obj;2.在update里面写: obj.GetComponent<AudioSource>().enabled = true;
相关文章
相关标签/搜索