using HarmonyLib; using PvZ_Fusion_Translator.AssetStore; namespace PvZ_Fusion_Translator.Patches.Managers; [HarmonyPatch(typeof(Garden))] public static class Garden_Patch { [HarmonyPatch(nameof(Garden.Awake)), HarmonyPostfix] private static void Awake(Garden __instance) { foreach (var text in __instance.GetComponentsInChildren()) { text.text = StringStore.TranslateText(text.text); text.font = FontStore.LoadTMPFont(Utils.Language.ToString()); } } }