@@ -21,8 +21,8 @@ public static class NetworkSceneManager
2121 private static Scene lastScene ;
2222 private static Scene nextScene ;
2323 private static bool isSwitching = false ;
24- internal static uint CurrentSceneIndex = 0 ;
25- internal static Guid CurrentSceneSwitchProgressGuid = new Guid ( ) ;
24+ internal static uint currentSceneIndex = 0 ;
25+ internal static Guid currentSceneSwitchProgressGuid = new Guid ( ) ;
2626
2727 internal static void SetCurrentSceneIndex ( )
2828 {
@@ -31,8 +31,8 @@ internal static void SetCurrentSceneIndex ()
3131 if ( LogHelper . CurrentLogLevel <= LogLevel . Normal ) LogHelper . LogWarning ( "Scene switching is enabled but the current scene (" + SceneManager . GetActiveScene ( ) . name + ") is not regisered as a network scene." ) ;
3232 return ;
3333 }
34- CurrentSceneIndex = sceneNameToIndex [ SceneManager . GetActiveScene ( ) . name ] ;
35- CurrentActiveSceneIndex = CurrentSceneIndex ;
34+ currentSceneIndex = sceneNameToIndex [ SceneManager . GetActiveScene ( ) . name ] ;
35+ CurrentActiveSceneIndex = currentSceneIndex ;
3636 }
3737
3838 internal static uint CurrentActiveSceneIndex { get ; private set ; } = 0 ;
@@ -59,13 +59,13 @@ public static SceneSwitchProgress SwitchScene(string sceneName)
5959 return null ;
6060 }
6161 SpawnManager . DestroySceneObjects ( ) ; //Destroy current scene objects before switching.
62- CurrentSceneIndex = sceneNameToIndex [ sceneName ] ;
62+ currentSceneIndex = sceneNameToIndex [ sceneName ] ;
6363 isSwitching = true ;
6464 lastScene = SceneManager . GetActiveScene ( ) ;
6565
6666 SceneSwitchProgress switchSceneProgress = new SceneSwitchProgress ( ) ;
6767 sceneSwitchProgresses . Add ( switchSceneProgress . guid , switchSceneProgress ) ;
68- CurrentSceneSwitchProgressGuid = switchSceneProgress . guid ;
68+ currentSceneSwitchProgressGuid = switchSceneProgress . guid ;
6969
7070 AsyncOperation sceneLoad = SceneManager . LoadSceneAsync ( sceneName , LoadSceneMode . Additive ) ;
7171 nextScene = SceneManager . GetSceneByName ( sceneName ) ;
0 commit comments