change EveBtn patched class to UIButton (idk)

This commit is contained in:
TuanAnh2901 2025-06-02 10:56:01 +07:00
parent d41aa4f42c
commit 030e849a6b

View file

@ -6,12 +6,12 @@ using UnityEngine;
namespace PvZ_Fusion_Translator.Patches.GameObjects.ButtonObjects namespace PvZ_Fusion_Translator.Patches.GameObjects.ButtonObjects
{ {
[HarmonyPatch(typeof(EveManager))] [HarmonyPatch(typeof(UIButton))]
public static class EveManager_Patch public static class EveManager_UIButton_Patch
{ {
[HarmonyPostfix] [HarmonyPostfix]
[HarmonyPatch(nameof(EveManager.Balanced))] [HarmonyPatch(nameof(UIButton.Start))]
private static void Balanced(EveManager __instance) private static void Start(UIButton __instance)
{ {
Transform sceneText = __instance.transform.FindChild("text"); Transform sceneText = __instance.transform.FindChild("text");
if(sceneText != null) if(sceneText != null)