Update SceneHandler.cs

This commit is contained in:
Sinai 2021-04-15 20:23:33 +10:00
parent a3fcac1acb
commit 5bb612cb5a

View File

@ -61,9 +61,9 @@ namespace UnityExplorer.Core
public static event Action<ReadOnlyCollection<Scene>> OnLoadedScenesChanged; public static event Action<ReadOnlyCollection<Scene>> OnLoadedScenesChanged;
/// <summary> /// <summary>
/// Equivalent to <see cref="SceneManager.sceneCount"/> + 1, to include 'DontDestroyOnLoad'. /// Equivalent to <see cref="SceneManager.sceneCount"/> + 2, to include 'DontDestroyOnLoad'.
/// </summary> /// </summary>
public static int LoadedSceneCount => SceneManager.sceneCount + 1; public static int LoadedSceneCount => SceneManager.sceneCount + 2;
// Cached on startup, will never change during runtime (and generally doesn't change between Unity versions either) // Cached on startup, will never change during runtime (and generally doesn't change between Unity versions either)