Fixed compile error
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user