
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
안녕하세요!
강의를 보면서 Audio Source에 카드가 뒤집힐때마다 소리가 날 수 있게끔 filp 사운드가 들어갈 수 있도록 스크립트를 만들어 저장까지 완료 했습니다!
저장 후 게임 실행을 해보니 디버그 로그에 There are no audio listeners in the scene. Please ensure there is always one audio listener in the scene 라고 뜨더라구요...
Scene에 오디오 리스너가 존재하지 않아서 발생하는 문제라고 하는데 강의나 노션 학습자료를 살펴보면 Card 프리펩에 사운드가 잘 들어가면 된다고 해서
이 부분을 잘 모르겠습니다! 혹시 제가 놓치고 있는 부분이 있을까요??

작성한 코드 및 에러 메세지
Card.cs
AudioSource audioSource;
public AudioClip clip;
public SpriteRenderer FrontImage;
void Start()
{
audioSource = GetComponent<AudioSource>();
}
public void OpenCard()
{
if (GameManger.Instance.secondCard != null) return;
audioSource.PlayOneShot(clip);
anim.SetBool("isOpen", true);
front.SetActive(true);
back.SetActive(false);
if(GameManger.Instance.firstCard == null)
{
GameManger.Instance.firstCard = this;
}
else
{
GameManger.Instance.secondCard = this;
GameManger.Instance.checkMetched();
}
에러 메세지: There are no audio listeners in the scene. Please ensure there is always one audio listener in the scene
