Final touchups to the lifecycle management
This commit is contained in:
@@ -27,9 +27,6 @@ namespace UI
|
||||
[SerializeField] private UnityEngine.UI.Button devOptionsButton;
|
||||
[SerializeField] private GameObject mainOptionsContainer;
|
||||
[SerializeField] private GameObject devOptionsContainer;
|
||||
|
||||
// After UIPageController (50)
|
||||
public override int ManagedAwakePriority => 55;
|
||||
|
||||
internal override void OnManagedAwake()
|
||||
{
|
||||
@@ -76,10 +73,8 @@ namespace UI
|
||||
// This only fires once for DontDestroyOnLoad objects, so we handle scene loads in OnManagedAwake
|
||||
}
|
||||
|
||||
protected override void OnDestroy()
|
||||
internal override void OnManagedDestroy()
|
||||
{
|
||||
base.OnDestroy();
|
||||
|
||||
// Unsubscribe when destroyed
|
||||
if (SceneManagerService.Instance != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user