19 lines
No EOL
471 B
C#
19 lines
No EOL
471 B
C#
using HarmonyLib;
|
|
using Il2Cpp;
|
|
using Il2CppTMPro;
|
|
using PvZ_Fusion_Translator.AssetStore;
|
|
using UnityEngine;
|
|
|
|
namespace PvZ_Fusion_Translator.Patches.GameObjects.ButtonObjects
|
|
{
|
|
[HarmonyPatch(typeof(BackToIndex))]
|
|
public class BackToIndex_Patch
|
|
{
|
|
[HarmonyPostfix]
|
|
[HarmonyPatch(nameof(BackToIndex.Awake))]
|
|
public static void Awake(BackToIndex __instance)
|
|
{
|
|
StringStore.TranslateTextTransform(__instance.transform.GetChild(0));
|
|
}
|
|
}
|
|
} |