mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
nevermind i have no idea what I'm doing lol
This commit is contained in:
parent
d9b51fa5a8
commit
c93689037b
@ -515,13 +515,13 @@ namespace NewHorizons.Handlers
|
|||||||
_triggerRoot = gameObject;
|
_triggerRoot = gameObject;
|
||||||
_subsectors = new List<Sector>();
|
_subsectors = new List<Sector>();
|
||||||
_occupantMask = DynamicOccupant.Player;
|
_occupantMask = DynamicOccupant.Player;
|
||||||
SectorManager.RegisterSector(this);
|
|
||||||
var parentSector = GetComponentInParent<Sector>();
|
var parentSector = GetComponentInParent<Sector>();
|
||||||
if (parentSector != null && parentSector != this)
|
if (parentSector != null && parentSector != this)
|
||||||
{
|
{
|
||||||
_parentSector = parentSector;
|
_parentSector = parentSector;
|
||||||
_parentSector._subsectors.SafeAdd(this);
|
_parentSector.AddSubsector(this);
|
||||||
}
|
}
|
||||||
|
SectorManager.RegisterSector(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Start()
|
public void Start()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user