I don't feel like uploading my visual studio

This commit is contained in:
xen-42 2024-10-06 11:30:56 -04:00
parent 05d0dfc185
commit 3c1abb582e
4 changed files with 6 additions and 4 deletions

View File

@ -34,7 +34,7 @@ namespace NewHorizons.Builder.Props.EchoesOfTheEye
var dreamArrivalPoint = _prefab.GetComponent<DreamArrivalPoint>();
dreamArrivalPoint._location = DreamArrivalPoint.Location.Undefined;
dreamArrivalPoint._sector = null;
dreamArrivalPoint._entrywayVolumes = [];
dreamArrivalPoint._entrywayVolumes = new OWTriggerVolume[0];
dreamArrivalPoint._raftSpawn = null;
dreamArrivalPoint._connectedDreamCampfire = null;
dreamArrivalPoint._campfire._sector = null;

View File

@ -33,7 +33,7 @@ namespace NewHorizons.Builder.Props.EchoesOfTheEye
var campfire = _prefab.GetComponentInChildren<DreamCampfire>();
campfire._dreamArrivalLocation = DreamArrivalPoint.Location.Undefined;
campfire._sector = null;
campfire._entrywayVolumes = [];
campfire._entrywayVolumes = new OWTriggerVolume[0];
}
}
}

View File

@ -11,10 +11,12 @@ namespace NewHorizons.Components.EOTE
{
private bool initialized;
private bool active;
private List<GameObject> toggledObjects = [];
private List<GameObject> toggledObjects = new();
public void Initialize()
{
if (initialized) return;
foreach (Transform child in transform)
{
if (child.gameObject.name == "FieldDetector") continue;

View File

@ -44,7 +44,7 @@ namespace NewHorizons.Handlers
var simRootObj = MigrateCopy(oldDWC._primarySimulationRoot.gameObject, managerObj);
dwc._primarySimulationRoot = simRootObj.transform;
dwc._simulationRoots = [simRootObj.transform];
dwc._simulationRoots = new Transform[] { simRootObj.transform };
dwc._simulationCamera = simRootObj.FindChild("Camera_Simulation").GetComponent<SimulationCamera>();
dwc._simulationSphere = simRootObj.FindChild("SimulationSphere").GetComponent<OWRenderer>();