mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Probably less laggy
This commit is contained in:
parent
7556d911bf
commit
2b6bb6c5d2
@ -83,8 +83,10 @@ namespace NewHorizons.Handlers
|
|||||||
{
|
{
|
||||||
sector.OnOccupantEnterSector += _ =>
|
sector.OnOccupantEnterSector += _ =>
|
||||||
{
|
{
|
||||||
foreach (var assetBundle in assetBundles)
|
// If both are already in then it already loaded
|
||||||
StreamingManager.LoadStreamingAssets(assetBundle);
|
if (sector.ContainsOccupant(DynamicOccupant.Player) && sector.ContainsOccupant(DynamicOccupant.Probe)) return;
|
||||||
|
|
||||||
|
foreach (var assetBundle in assetBundles) StreamingManager.LoadStreamingAssets(assetBundle);
|
||||||
};
|
};
|
||||||
/*
|
/*
|
||||||
sector.OnOccupantExitSector += _ =>
|
sector.OnOccupantExitSector += _ =>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user