mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-30 03:32:47 +00:00
call legacy scene load function after instead of before new one
This commit is contained in:
parent
cdd87e9a39
commit
25970066f8
@ -30,8 +30,6 @@ public static class QSBSceneManager
|
||||
|
||||
static QSBSceneManager()
|
||||
{
|
||||
LoadManager.OnCompleteSceneLoad += OnCompleteSceneLoad;
|
||||
|
||||
LoadManager.OnStartSceneLoad += (originalScene, loadScene) =>
|
||||
{
|
||||
DebugLog.DebugWrite($"PRE SCENE LOAD ({originalScene} -> {loadScene})", MessageType.Info);
|
||||
@ -41,6 +39,8 @@ public static class QSBSceneManager
|
||||
{
|
||||
DebugLog.DebugWrite($"POST SCENE LOAD ({originalScene} -> {loadScene})", MessageType.Info);
|
||||
OnPostSceneLoad?.SafeInvoke(originalScene, loadScene);
|
||||
|
||||
OnCompleteSceneLoad(originalScene, loadScene);
|
||||
};
|
||||
|
||||
DebugLog.DebugWrite("Scene Manager ready.", MessageType.Success);
|
||||
|
Loading…
x
Reference in New Issue
Block a user