mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Simplify
This commit is contained in:
parent
81ec063c2b
commit
c8cc4534c1
@ -889,20 +889,16 @@ namespace NewHorizons
|
|||||||
IsWarpingFromShip = warp;
|
IsWarpingFromShip = warp;
|
||||||
IsWarpingFromVessel = vessel;
|
IsWarpingFromVessel = vessel;
|
||||||
|
|
||||||
|
var warpingToEye = newStarSystem == "EyeOfTheUniverse";
|
||||||
|
|
||||||
|
if (warpingToEye) PlayerData.SaveWarpedToTheEye(180);
|
||||||
|
else PlayerData.SaveEyeCompletion();
|
||||||
|
|
||||||
|
var loadableScene = warpingToEye ? SubmitActionLoadScene.LoadableScenes.EYE : SubmitActionLoadScene.LoadableScenes.GAME;
|
||||||
var newGame = SearchUtilities.Find("TitleMenu/TitleCanvas/TitleLayoutGroup/MainMenuBlock/MainMenuLayoutGroup/Button-NewGame")?.GetComponent<SubmitActionLoadScene>();
|
var newGame = SearchUtilities.Find("TitleMenu/TitleCanvas/TitleLayoutGroup/MainMenuBlock/MainMenuLayoutGroup/Button-NewGame")?.GetComponent<SubmitActionLoadScene>();
|
||||||
var resumeGame = SearchUtilities.Find("TitleMenu/TitleCanvas/TitleLayoutGroup/MainMenuBlock/MainMenuLayoutGroup/Button-ResumeGame")?.GetComponent<SubmitActionLoadScene>();
|
var resumeGame = SearchUtilities.Find("TitleMenu/TitleCanvas/TitleLayoutGroup/MainMenuBlock/MainMenuLayoutGroup/Button-ResumeGame")?.GetComponent<SubmitActionLoadScene>();
|
||||||
if (newStarSystem == "EyeOfTheUniverse")
|
if (newGame != null) newGame._sceneToLoad = loadableScene;
|
||||||
{
|
if (resumeGame != null) resumeGame._sceneToLoad = loadableScene;
|
||||||
PlayerData.SaveWarpedToTheEye(TimeLoopUtilities.LOOP_DURATION_IN_SECONDS);
|
|
||||||
if (newGame != null) newGame._sceneToLoad = SubmitActionLoadScene.LoadableScenes.EYE;
|
|
||||||
if (resumeGame != null) resumeGame._sceneToLoad = SubmitActionLoadScene.LoadableScenes.EYE;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
PlayerData.SaveEyeCompletion();
|
|
||||||
if (newGame != null) newGame._sceneToLoad = SubmitActionLoadScene.LoadableScenes.GAME;
|
|
||||||
if (resumeGame != null) resumeGame._sceneToLoad = SubmitActionLoadScene.LoadableScenes.GAME;
|
|
||||||
}
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user