From 1a04f2a3d247e357d222cee0b2704d794b0784ea Mon Sep 17 00:00:00 2001 From: MacBuilder Date: Tue, 21 Oct 2025 13:37:14 +0200 Subject: [PATCH] FIxed annoying compiler error --- Assets/Scripts/Sound/NarratorVO.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Assets/Scripts/Sound/NarratorVO.cs b/Assets/Scripts/Sound/NarratorVO.cs index b6d273e0..742452c3 100644 --- a/Assets/Scripts/Sound/NarratorVO.cs +++ b/Assets/Scripts/Sound/NarratorVO.cs @@ -1,16 +1,14 @@ using UnityEngine; using UnityEngine.Audio; -using AudioSourceEvents; using System; using UnityEngine.Events; -public class NarratorVO : AudioSourceObserver +public class NarratorVO : MonoBehaviour { public AudioSource narratorAudioSource; public AudioResource firstNarration; public UnityEvent narrationFinished; - private IAudioEventSource _eventSource; // Start is called once before the first execution of Update after the MonoBehaviour is created void Start() @@ -20,8 +18,6 @@ public class NarratorVO : AudioSourceObserver void PlayNarrationAudio() { - _eventSource = narratorAudioSource.RequestEventHandlers(); - _eventSource.AudioStopped += NarrationFinished; narratorAudioSource.resource = firstNarration; narratorAudioSource.Play();