#if false using HarmonyLib; using PvZ_Fusion_Translator.AssetStore; namespace PvZ_Fusion_Translator.Patches.GameObjects; [HarmonyPatch(typeof(ShootingMenu))] public static class ShootingMenu_Patch { [HarmonyPatch(nameof(ShootingMenu.Update)), HarmonyPostfix] private static void Update(ShootingMenu __instance) { var fontAsset = FontStore.LoadTMPFont(Utils.Language.ToString()); foreach (TextMeshProUGUI txt in __instance.GetComponentsInChildren()) { txt.text = StringStore.TranslateText(txt.text); txt.font = fontAsset; } } } #endif