using UnityEngine; using XRLib.UI; using XED.Core; using XED.Hierarchy; namespace XED.UI { public class Panel_ComponentLibrary : PanelBase//UnityEngine.MonoBehaviour { public CustomScrollRect scrollRect; public PooledScrollView scrollView; private void Awake() { scrollRect = GetComponentInChildren(); scrollView = GetComponentInChildren(); UnityEngine.UI.Button btnClose = transform.Find("Button_Close").GetComponent< UnityEngine.UI.Button>(); btnClose.onClick.AddListener(() => gameObject.SetActive(false)); } // Start is called once before the first execution of Update after the MonoBehaviour is created void Start() { } // Update is called once per frame void Update() { } } }