Exemplo n.º 1
0
 public static PointerMoveEventListener Get(GameObject gameObject)
 {
     return(ComponentUtil.AutoGet <PointerMoveEventListener>(gameObject));
 }
Exemplo n.º 2
0
 public static PointerBeginDragEvent Get(GameObject gameObject)
 {
     return(ComponentUtil.AutoGet <PointerBeginDragEvent>(gameObject));
 }
Exemplo n.º 3
0
 /// <summary>
 /// 获取GameObject的UI事件组件,没有则会自动添加
 /// </summary>
 /// <param name="gameObject"></param>
 /// <returns></returns>
 public static UIEventListener Get(GameObject gameObject)
 {
     return(ComponentUtil.AutoGet <UIEventListener>(gameObject));
 }