| | |
| | | //注册委托 |
| | | private void RegisterDelegate() |
| | | { |
| | | appdomain.DelegateManager.RegisterDelegateConvertor<UGUIEventListenerContainDrag.VoidDelegate>((action) => |
| | | { |
| | | return new UGUIEventListenerContainDrag.VoidDelegate((go) => ((Action<GameObject>)action)(go)); |
| | | }); |
| | | appdomain.DelegateManager.RegisterMethodDelegate<UnityEngine.GameObject, UnityEngine.EventSystems.PointerEventData>(); |
| | | appdomain.DelegateManager.RegisterDelegateConvertor<global::UGUIEventListenerContainDrag.VoidDelegateDrag>((act) => |
| | | { |
| | | return new global::UGUIEventListenerContainDrag.VoidDelegateDrag((go, eventData) => |
| | | { |
| | | ((System.Action<UnityEngine.GameObject, UnityEngine.EventSystems.PointerEventData>)act)(go, eventData); |
| | | }); |
| | | }); |
| | | |
| | | //无返回值 |
| | | appdomain.DelegateManager.RegisterMethodDelegate<int>(); |
| | | appdomain.DelegateManager.RegisterMethodDelegate<long>(); |