mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Create EyeStateActivationController for bodies
This commit is contained in:
parent
ac6b6aa191
commit
b4e93bbfb8
@ -379,6 +379,18 @@ namespace NewHorizons.Handlers
|
||||
var go = new GameObject(body.Config.name.Replace(" ", "").Replace("'", "") + "_Body");
|
||||
go.SetActive(false);
|
||||
|
||||
if (Main.Instance.CurrentStarSystem == "EyeOfTheUniverse")
|
||||
{
|
||||
EyeStateActivationController eyeStateActivation = SearchUtilities.Find("SolarSystemRoot").AddComponent<EyeStateActivationController>();
|
||||
eyeStateActivation._object = go;
|
||||
eyeStateActivation._activeStates = new EyeState[3]
|
||||
{
|
||||
EyeState.AboardVessel,
|
||||
EyeState.WarpedToSurface,
|
||||
EyeState.IntoTheVortex
|
||||
};
|
||||
}
|
||||
|
||||
var owRigidBody = RigidBodyBuilder.Make(go, body.Config);
|
||||
var ao = AstroObjectBuilder.Make(go, primaryBody, body.Config);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user