Add distinction between managed awake and managed start
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System.Collections;
|
||||
using System.Collections;
|
||||
using System;
|
||||
using Core;
|
||||
using Core.Lifecycle;
|
||||
@@ -56,11 +56,9 @@ namespace UI
|
||||
// ManagedBehaviour configuration
|
||||
public override int ManagedAwakePriority => 45; // UI infrastructure, before UIPageController
|
||||
|
||||
private new void Awake()
|
||||
protected override void OnManagedAwake()
|
||||
{
|
||||
base.Awake(); // CRITICAL: Register with LifecycleManager!
|
||||
|
||||
// Set instance immediately so it's available before OnManagedAwake() is called
|
||||
// Set instance immediately (early initialization)
|
||||
_instance = this;
|
||||
|
||||
// Set up container reference early
|
||||
@@ -74,7 +72,7 @@ namespace UI
|
||||
}
|
||||
}
|
||||
|
||||
protected override void OnManagedAwake()
|
||||
protected override void OnManagedStart()
|
||||
{
|
||||
Logging.Debug("[LoadingScreenController] Initialized");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user