File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
com.unity.netcode.gameobjects/Runtime/Core Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -3413,8 +3413,7 @@ internal void SubscribeToActiveSceneForSynch()
34133413 /// </summary>
34143414 private void CurrentlyActiveSceneChanged ( Scene current , Scene next )
34153415 {
3416- // TODO should we remove NetworkManager null check here?
3417- // Early exit if there is no NetworkManager assigned, the NetworkManager is shutting down, the NetworkObject
3416+ // Early exit if the NetworkManager is shutting down, the NetworkObject
34183417 // is not spawned, or an in-scene placed NetworkObject
34193418 if ( NetworkManager . ShutdownInProgress || ! IsSpawned || IsSceneObject != false )
34203419 {
@@ -3515,8 +3514,7 @@ private void Awake()
35153514 /// </remarks>
35163515 internal bool UpdateForSceneChanges ( )
35173516 {
3518- // TODO should we remove NetworkManager null check here?
3519- // Early exit if SceneMigrationSynchronization is disabled, there is no NetworkManager assigned,
3517+ // Early exit if SceneMigrationSynchronization is disabled,
35203518 // the NetworkManager is shutting down, the NetworkObject is not spawned, it is an in-scene placed
35213519 // NetworkObject, or the GameObject's current scene handle is the same as the SceneOriginHandle
35223520 if ( ! SceneMigrationSynchronization || ! IsSpawned || NetworkManager . ShutdownInProgress ||
You can’t perform that action at this time.
0 commit comments