using HarmonyLib; using TMPro; using PvZ_Fusion_Translator__BepInEx_.AssetStore; using PvZ_Fusion_Translator__BepInEx_; using UnityEngine; namespace PvZ_Fusion_Translator__BepInEx_.Patches.GameObjects.ButtonObjects { [HarmonyPatch(typeof(ExploreMakeZombieButton))] public class ExploreMakeZombieButton_Patch { [HarmonyPostfix] [HarmonyPatch(nameof(ExploreMakeZombieButton.Start))] public static void Start(ExploreMakeZombieButton __instance) { __instance.sceneText.text = Utils.GetZombieNameFromAlmanac(__instance.theZombieType); __instance.sceneText.font = FontStore.LoadTMPFont(Utils.Language.ToString()); } } }