call legacy scene load function after instead of before new one

This commit is contained in:
JohnCorby 2022-05-03 22:56:23 -07:00
parent cdd87e9a39
commit 25970066f8

View File

@ -30,8 +30,6 @@ public static class QSBSceneManager
static QSBSceneManager() static QSBSceneManager()
{ {
LoadManager.OnCompleteSceneLoad += OnCompleteSceneLoad;
LoadManager.OnStartSceneLoad += (originalScene, loadScene) => LoadManager.OnStartSceneLoad += (originalScene, loadScene) =>
{ {
DebugLog.DebugWrite($"PRE SCENE LOAD ({originalScene} -> {loadScene})", MessageType.Info); 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); DebugLog.DebugWrite($"POST SCENE LOAD ({originalScene} -> {loadScene})", MessageType.Info);
OnPostSceneLoad?.SafeInvoke(originalScene, loadScene); OnPostSceneLoad?.SafeInvoke(originalScene, loadScene);
OnCompleteSceneLoad(originalScene, loadScene);
}; };
DebugLog.DebugWrite("Scene Manager ready.", MessageType.Success); DebugLog.DebugWrite("Scene Manager ready.", MessageType.Success);