From ae840a4b2fe2c069f8cc3ce6e240e22f347dfd1f Mon Sep 17 00:00:00 2001 From: journaliciouz Date: Mon, 3 Nov 2025 14:44:15 +0100 Subject: [PATCH] Changed Awake/Start to OnAwake --- Assets/Scripts/Sound/AppleAudioSource.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Assets/Scripts/Sound/AppleAudioSource.cs b/Assets/Scripts/Sound/AppleAudioSource.cs index d48ea839..f31b9445 100644 --- a/Assets/Scripts/Sound/AppleAudioSource.cs +++ b/Assets/Scripts/Sound/AppleAudioSource.cs @@ -19,7 +19,7 @@ public class AppleAudioSource : MonoBehaviour public int sourcePriority; // Start is called once before the first execution of Update after the MonoBehaviour is created - void Start() + void OnEnable() { audioSource = GetComponent(); AudioManager.Instance.RegisterNewAudioSource(this); @@ -29,10 +29,6 @@ public class AppleAudioSource : MonoBehaviour } - private void Awake() - { - Start(); - } public void InitializeAudioSource() {