diff --git a/Assets/Scripts/UI/PlayerHudManager.cs b/Assets/Scripts/UI/PlayerHudManager.cs index 46c939a9..c37d1ad1 100644 --- a/Assets/Scripts/UI/PlayerHudManager.cs +++ b/Assets/Scripts/UI/PlayerHudManager.cs @@ -5,8 +5,9 @@ using Core; using System; using UnityEngine.UI; using UnityEngine.Playables; +using Core.Lifecycle; -public class PlayerHudManager : MonoBehaviour +public class PlayerHudManager : ManagedBehaviour { private AppSwitcher _appSwitcher; public GameObject landscapeObject; @@ -27,7 +28,7 @@ public class PlayerHudManager : MonoBehaviour public static PlayerHudManager Instance => _instance; - private void Awake() + private new void Awake() { if (Instance != null) { @@ -37,8 +38,11 @@ public class PlayerHudManager : MonoBehaviour _instance = this; - // Register for post-boot initialization - BootCompletionService.RegisterInitAction(InitializePostBoot); + } + + protected override void OnManagedAwake() + { + InitializePostBoot(); } private void InitializeReferences()