“当前上下文 [Assembly-CSharp] 中不存在名称‘来源’”,
帮助!(统一2017.3.0f3)
这是代码:
public static SoundManager Instance = null;
public AudioClip goalBloop;
public AudioClip lossBuzz;
public AudioClip hitPaddleBloop;
public AudioClip winSound;
public AudioClip wallBloop;
private AudioSource soundEffectAudio;
// Use this for initialization
void Start () {
if(Instance == null)
{
Instance = this;
} else if (Instance != this)
{
Destroy(gameObject);
}
AudioSource[] source = GetComponents<AudioSource>();
foreach(AudioSource source in sources)
{
}
}