using UnityEditor; using UnityEngine; using UnityEngine.UI; namespace AiryUI { [RequireComponent ( typeof ( Image ) )] [RequireComponent ( typeof ( Button ) )] [RequireComponent ( typeof ( AnimatedElement ) )] [AddComponentMenu ( "Airy UI/UI Close Button" )] public class UICloseButton : CloseButton { public Button buttonComponent; private AnimatedElement myAnimatedElement; private void Awake () { buttonComponent = buttonComponent ? GetComponent