unity3d中脚本中AudioSou.Play();总显示是空引用,是怎么回事,代码如下,回答有帮助追加悬赏,大神求解
privateAudioSourceAudioSou;voidStart(){AudioSou=GameObject.Find("MainCamera").GetComp...
private AudioSource AudioSou;void Start () { AudioSou = GameObject.Find("Main Camera").GetComponent<AudioSource>();}public void Change(){ AudioSou.Play();}我给摄像机添加的音频,unity3d中图片如下
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询