public static void Prefix(UITemplates __instance, ref PurchaseUI.Purchasable[] purchasables, PurchaseUI.OnClose onClose)
 {
     if (purchaseUIs.ContainsKey(onClose.Target.GetType()))
     {
         purchasables = purchaseUIs[onClose.Method.ReflectedType].Invoke(purchasables);
     }
 }
 PopupsManager()
 {
     Templates = new UITemplates <PopupsBehaviour>(OnCreatedDuplicate);
 }