stash work
This commit is contained in:
@@ -44,22 +44,17 @@ namespace Bootstrap
|
||||
// Show the loading screen immediately with our combined progress provider
|
||||
initialLoadingScreen.ShowLoadingScreen(GetCombinedProgress);
|
||||
|
||||
// Start the boot process if not already initialized
|
||||
if (!CustomBoot.Initialised)
|
||||
{
|
||||
// Subscribe to the boot completion event
|
||||
CustomBoot.OnBootCompleted += OnBootCompleted;
|
||||
CustomBoot.OnBootProgressChanged += OnBootProgressChanged;
|
||||
|
||||
// Start initialization
|
||||
CustomBoot.PerformInitialisation();
|
||||
}
|
||||
else
|
||||
{
|
||||
// If already initialized (can happen in editor testing), proceed immediately
|
||||
Debug.Log("[BootSceneController] Bootstrap already initialized, proceeding to main menu");
|
||||
OnBootCompleted();
|
||||
}
|
||||
// Subscribe to boot progress events
|
||||
CustomBoot.OnBootProgressChanged += OnBootProgressChanged;
|
||||
|
||||
// Register our boot completion handler with the BootCompletionService
|
||||
// This will execute either immediately if boot is already complete,
|
||||
// or when the boot process completes
|
||||
BootCompletionService.RegisterInitAction(
|
||||
OnBootCompleted,
|
||||
50, // Higher priority (lower number)
|
||||
"BootSceneController.OnBootCompleted"
|
||||
);
|
||||
|
||||
// In debug mode, log additional information
|
||||
if (debugMode)
|
||||
|
||||
Reference in New Issue
Block a user