@@ -150,8 +150,6 @@ public static SCANcontroller controller
150150 private List < CelestialBody > dataBodies = new List < CelestialBody > ( ) ;
151151 private CelestialBody bigMapBodyPQS ;
152152 private CelestialBody zoomMapBodyPQS ;
153- private PQSMod KopernicusOnDemand ;
154- private MonoBehaviour kopernicusScaledSpaceLoader ;
155153 private CelestialBody bigMapBodyVisual ;
156154 private CelestialBody zoomMapBodyVisual ;
157155
@@ -1318,7 +1316,7 @@ internal void loadPQS(CelestialBody b, mapSource s = mapSource.Data)
13181316 return ;
13191317 }
13201318
1321- KopernicusOnDemand = b . GetComponentsInChildren < PQSMod > ( true ) . Where ( p => p . GetType ( ) . Name == "PQSMod_OnDemandHandler" ) . FirstOrDefault ( ) ;
1319+ PQSMod KopernicusOnDemand = b . GetComponentsInChildren < PQSMod > ( true ) . Where ( p => p . GetType ( ) . Name == "PQSMod_OnDemandHandler" ) . FirstOrDefault ( ) ;
13221320
13231321 if ( KopernicusOnDemand == null )
13241322 {
@@ -1424,7 +1422,7 @@ internal void unloadPQS(CelestialBody b, mapSource s = mapSource.Data)
14241422 return ;
14251423 }
14261424
1427- KopernicusOnDemand = b . GetComponentsInChildren < PQSMod > ( true ) . Where ( p => p . GetType ( ) . Name == "PQSMod_OnDemandHandler" ) . FirstOrDefault ( ) ;
1425+ PQSMod KopernicusOnDemand = b . GetComponentsInChildren < PQSMod > ( true ) . Where ( p => p . GetType ( ) . Name == "PQSMod_OnDemandHandler" ) . FirstOrDefault ( ) ;
14281426
14291427 if ( KopernicusOnDemand == null )
14301428 {
@@ -1492,7 +1490,7 @@ internal void loadOnDemandScaledSpace(CelestialBody b, mapSource s)
14921490 break ;
14931491 }
14941492
1495- kopernicusScaledSpaceLoader = b . scaledBody . GetComponents < MonoBehaviour > ( ) . Where ( p => p . GetType ( ) . Name == SCANkopernicus . KOPERNICUSONDEMANDTYPE ) . FirstOrDefault ( ) ;
1493+ MonoBehaviour kopernicusScaledSpaceLoader = b . scaledBody . GetComponents < MonoBehaviour > ( ) . Where ( p => p . GetType ( ) . Name == SCANkopernicus . KOPERNICUSONDEMANDTYPE ) . FirstOrDefault ( ) ;
14961494
14971495 if ( kopernicusScaledSpaceLoader == null )
14981496 {
@@ -1570,7 +1568,7 @@ internal void unloadOnDemandScaledSpace(CelestialBody b, mapSource s)
15701568 return ;
15711569 }
15721570
1573- kopernicusScaledSpaceLoader = b . scaledBody . GetComponents < MonoBehaviour > ( ) . Where ( p => p . GetType ( ) . Name == SCANkopernicus . KOPERNICUSONDEMANDTYPE ) . FirstOrDefault ( ) ;
1571+ MonoBehaviour kopernicusScaledSpaceLoader = b . scaledBody . GetComponents < MonoBehaviour > ( ) . Where ( p => p . GetType ( ) . Name == SCANkopernicus . KOPERNICUSONDEMANDTYPE ) . FirstOrDefault ( ) ;
15741572
15751573 if ( kopernicusScaledSpaceLoader == null )
15761574 {
0 commit comments