少年修仙传客户端基础资源
liuxue
2021-07-26 a85c9a62f6c8222e9d69c2c06f117c41131040aa
8984 针对ILruntime增加Drag等事件
1个文件已修改
13 ■■■■■ 已修改文件
Assets/ILRuntime/Src/ILLauncherProxy.cs 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/ILRuntime/Src/ILLauncherProxy.cs
@@ -100,6 +100,19 @@
    //注册委托
    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>();