using Aki.Reflection.Patching; using Aki.Reflection.Utils; using EFT.UI; using System.Reflection; using UnityEngine; namespace TraderScrolling { public class PlayerCardPatch : ModulePatch { protected override MethodBase GetTargetMethod() { return typeof(DisplayMoneyPanelTMPText).GetMethod("Show", PatchConstants.PublicFlags); } [PatchPostfix] public static void PatchPostFix() { var gameObject = GameObject.Find("Menu UI"); var check = gameObject.GetComponentInChildren(); if (check != null) { return; } gameObject.AddComponent(); } } }