27 lines
900 B
C#
27 lines
900 B
C#
//using HarmonyLib;
|
|
//using Il2Cpp;
|
|
//using System.Text.Encodings.Web;
|
|
//using System.Text.Json;
|
|
|
|
//namespace PvZ_Fusion_Translator.Patches.Modes.Odyssey
|
|
//{
|
|
// [HarmonyPatch(typeof(TravelBuffMgr))]
|
|
// public static class TravelBuffMgr_Patch
|
|
// {
|
|
// [HarmonyPatch(nameof(TravelBuffMgr.Awake))]
|
|
// [HarmonyPostfix]
|
|
// private static void Awake(TravelBuffMgr __instance)
|
|
// {
|
|
// __instance.text = AssetStore.StringStore.TranslateText(__instance.text);
|
|
// __instance.text2 = AssetStore.StringStore.TranslateText(__instance.text2);
|
|
// }
|
|
|
|
// [HarmonyPatch(nameof(TravelBuffMgr.ShowText), new Type[] { typeof(int), typeof(int) })]
|
|
// [HarmonyPostfix]
|
|
// private static void ShowText(TravelBuffMgr __instance)
|
|
// {
|
|
// __instance.text = AssetStore.StringStore.TranslateText(__instance.text);
|
|
// __instance.text2 = AssetStore.StringStore.TranslateText(__instance.text2);
|
|
// }
|
|
// }
|
|
//}
|