using System.Collections.Generic; using Convention.WindowsUI; using UnityEngine; using UnityEngine.Events; using UnityEngine.UI; namespace Convention { public class CustomMenu : WindowsComponent { [Setting, SerializeField] private bool IsDestroy = true; [Resources, SerializeField, OnlyNotNullMode] private Button ButtonPrefab; [Resources, SerializeField, OnlyNotNullMode] private RectTransform Plane; [Content] public List childs = new(); [Content, OnlyPlayMode] [return: IsInstantiated(true)] public virtual Button CreateItem() { var item = GameObject.Instantiate(ButtonPrefab, Plane).GetComponent