mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
edit a little
This commit is contained in:
parent
cdf977d652
commit
4ca24054b6
@ -515,8 +515,12 @@ namespace NewHorizons.Handlers
|
|||||||
_subsectors = new List<Sector>();
|
_subsectors = new List<Sector>();
|
||||||
_occupantMask = DynamicOccupant.Player;
|
_occupantMask = DynamicOccupant.Player;
|
||||||
SectorManager.RegisterSector(this);
|
SectorManager.RegisterSector(this);
|
||||||
_parentSector = GetComponentInParent<Sector>();
|
var parentSector = GetComponentInParent<Sector>();
|
||||||
if (_parentSector != null && _parentSector != this) _parentSector.AddSubsector(this);
|
if (parentSector != null && parentSector != this)
|
||||||
|
{
|
||||||
|
_parentSector = parentSector;
|
||||||
|
_parentSector.AddSubsector(this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Start()
|
public void Start()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user