private static void UpdateGeoText(On.GeoCounter.orig_Update orig, GeoCounter self) { orig(self); if (BingoUI.globalSettings.showSpentGeo) { self.geoTextMesh.text = $"{GetGeoCounterCurrent(self)} ({BingoUI.localSettings.spentGeo} spent)"; } }
private static void GeoCounter_Awake(On.GeoCounter.orig_Awake orig, GeoCounter self) { orig(self); if (self.gameObject.GetComponent <G_GeoCounter_I>() == null) { self.gameObject.AddComponent <G_GeoCounter_I>(); } }
private static void CheckGeoSpent(On.GeoCounter.orig_TakeGeo orig, GeoCounter self, int geo) { orig(self, geo); if (GameManager.instance.GetSceneNameString() == ItemChanger.SceneNames.Fungus3_35 && PlayerData.instance.GetBool(nameof(PlayerData.bankerAccountPurchased))) { return; } BingoUI.localSettings.spentGeo += geo; }
internal static void CheckGeoSpent(On.GeoCounter.orig_TakeGeo orig, GeoCounter self, int geo) { orig(self, geo); if (GameManager.instance.GetSceneNameString() == "Fungus3_35" && PlayerData.instance.bankerAccountPurchased) { return; } BingoUI._settings.spentGeo += geo; }
public static void UpdateGeoText(On.GeoCounter.orig_Update orig, GeoCounter self) { orig(self); self.geoTextMesh.text = $"{geoCounterCurrent.GetValue(self)} ({BingoUI._settings.spentGeo} spent)"; }