using System; using System.Reflection; using HarmonyLib; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; namespace BanquetForCyka { [HarmonyPatch] public class MultiBuy { public static UIShopBlockSelect panel; public static Traverse panelTraverse; [HarmonyPostfix] [HarmonyPatch(typeof(UIShopBlockSelect), "OnSpawn")] public static void PostfixCreate(UIShopBlockSelect __instance) { panel = __instance; if (Main.debugBuyAll.Value) Console.WriteLine("UISnapshotPanel.OnPool: {0}", __instance); panelTraverse = Traverse.Create(__instance); var placeButton = panelTraverse.Field("m_PurchaseBlockButton").GetValue