using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.EventSystems; namespace YKMoon { /// /// UIBehaviour基础.// /// public class YKUIBehaviour : UIBehaviour { public Transform trans { get { if (m_Trans == null) { m_Trans = this.transform; } return m_Trans; } } private Transform m_Trans; public RectTransform rectTrans { get { return trans as RectTransform; }} } }