Exemplo n.º 1
0
 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)";
     }
 }
Exemplo n.º 2
0
 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>();
     }
 }
Exemplo n.º 3
0
        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;
        }
Exemplo n.º 4
0
        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;
        }
Exemplo n.º 5
0
 public static void UpdateGeoText(On.GeoCounter.orig_Update orig, GeoCounter self)
 {
     orig(self);
     self.geoTextMesh.text = $"{geoCounterCurrent.GetValue(self)} ({BingoUI._settings.spentGeo} spent)";
 }