The forgotten push

This commit is contained in:
Michal Pikulski
2025-11-05 20:55:09 +01:00
committed by Michal Pikulski
parent 0204c11560
commit cd12c344a9
2 changed files with 35 additions and 4 deletions

View File

@@ -324,6 +324,13 @@ namespace Core
{
LogDebugMessage($"Skipping save for: {oldSceneName} (skipSave=true)");
}
// PHASE 4: Clear PuzzleManager state before scene transition
if (PuzzleS.PuzzleManager.Instance != null)
{
LogDebugMessage($"Clearing puzzle state before scene transition");
PuzzleS.PuzzleManager.Instance.ClearPuzzleState();
}
// PHASE 5: Remove all AstarPath (A* Pathfinder) singletons before loading the new scene
var astarPaths = FindObjectsByType<AstarPath>(FindObjectsSortMode.None);