mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
only care about player, fuck da probe
This commit is contained in:
parent
2836c8ce41
commit
6c568e538f
@ -71,22 +71,20 @@ namespace NewHorizons.Handlers
|
||||
if (sector)
|
||||
{
|
||||
// load it if ur already in the sector
|
||||
if (sector.ContainsAnyOccupants(DynamicOccupant.Player | DynamicOccupant.Probe))
|
||||
if (sector.ContainsOccupant(DynamicOccupant.Player))
|
||||
{
|
||||
foreach (var assetBundle in assetBundles)
|
||||
{
|
||||
Logger.LogVerbose($"loading bundle {assetBundle}");
|
||||
StreamingManager.LoadStreamingAssets(assetBundle);
|
||||
}
|
||||
}
|
||||
|
||||
sector.OnSectorOccupantsUpdated += () =>
|
||||
{
|
||||
if (sector.ContainsAnyOccupants(DynamicOccupant.Player | DynamicOccupant.Probe))
|
||||
if (sector.ContainsOccupant(DynamicOccupant.Player))
|
||||
{
|
||||
foreach (var assetBundle in assetBundles)
|
||||
{
|
||||
Logger.LogVerbose($"loading bundle {assetBundle}");
|
||||
StreamingManager.LoadStreamingAssets(assetBundle);
|
||||
}
|
||||
}
|
||||
@ -94,7 +92,6 @@ namespace NewHorizons.Handlers
|
||||
{
|
||||
foreach (var assetBundle in assetBundles)
|
||||
{
|
||||
Logger.LogVerbose($"UNloading bundle {assetBundle}");
|
||||
StreamingManager.UnloadStreamingAssets(assetBundle);
|
||||
}
|
||||
}
|
||||
@ -105,7 +102,6 @@ namespace NewHorizons.Handlers
|
||||
// just load it immediately and hope for the best
|
||||
foreach (var assetBundle in assetBundles)
|
||||
{
|
||||
Logger.LogVerbose($"loading bundle {assetBundle}");
|
||||
StreamingManager.LoadStreamingAssets(assetBundle);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user