/// <summary>
 /// 获取GameObject的PhysicsEventListener事件组件
 /// </summary>
 /// <param name="gameObject"></param>
 /// <returns></returns>
 public static PhysicsEventListener Get(GameObject gameObject)
 {
     return(ComponentUtil.AutoGet <PhysicsEventListener>(gameObject));
 }
Beispiel #2
0
 public static PointerDragEventListener Get(GameObject gameObject)
 {
     return(ComponentUtil.AutoGet <PointerDragEventListener>(gameObject));
 }
 /// <summary>
 /// 获取GameObject的事件监听组件,没有则会自动添加
 /// </summary>
 /// <param name="gameObject"></param>
 /// <returns></returns>
 public static T Get(GameObject gameObject)
 {
     return(ComponentUtil.AutoGet <T>(gameObject));
 }