public static void Postfix(SGHeaderWidget __instance, SimGameState ___simState, GameObject ___careerModeArea) { if (___simState.IsCareerMode()) { ___careerModeArea.SetActive(false); } }
public static void Postfix(SGHeaderWidget __instance) { var simGame = Traverse.Create(__instance).Field("simState").GetValue <SimGameState>(); var careerModeArea = Traverse.Create(__instance).Field("careerModeArea").GetValue <GameObject>(); if (simGame.IsCareerMode() && (Main.Settings.HideAlways || simGame.GetCareerModeDaysRemaining() <= 0)) { careerModeArea.SetActive(false); } }