Make eye coordinate prompt trigger active at eye

This commit is contained in:
Noah Pilarski 2022-09-20 10:08:46 -04:00
parent 2d619a58c2
commit be9a003768

View File

@ -419,6 +419,10 @@ namespace NewHorizons
vessel_ss._streamingGroup = eyeSector.gameObject.FindChild("StreamingGroup_EYE").GetComponent<StreamingGroup>();
vessel_ss.SetSector(vesselSector);
var eyeCoordinatePromptTrigger = vesselSector.GetComponentInChildren<EyeCoordinatePromptTrigger>(true);
eyeCoordinatePromptTrigger._warpController = eyeCoordinatePromptTrigger.GetComponentInParent<VesselWarpController>();
eyeCoordinatePromptTrigger.gameObject.SetActive(true);
var solarSystemRoot = SearchUtilities.Find("SolarSystemRoot");
// Disable forest and observatory so that a custom body doesn't accidentally pass through them. (they are 6.5km away from eye)