change EveBtn patched class to UIButton (idk)
This commit is contained in:
parent
d41aa4f42c
commit
030e849a6b
1 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue