少年修仙传客户端基础资源
liuxue
2021-07-12 cdf82c1e44b9058aced11ca2848bb9f694c91986
8984 支持docolor,onComplete,onKill等等
1个文件已修改
34 ■■■■■ 已修改文件
Assets/ILRuntime/Src/ILLauncherProxy.cs 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/ILRuntime/Src/ILLauncherProxy.cs
@@ -167,8 +167,11 @@
        appdomain.DelegateManager.RegisterMethodDelegate<System.UInt32, System.Int32>();
        appdomain.DelegateManager.RegisterMethodDelegate<int, int, int>();
        appdomain.DelegateManager.RegisterMethodDelegate<PackType>();
        appdomain.DelegateManager.RegisterMethodDelegate<UnityEngine.Color>();
        //有返回值
        appdomain.DelegateManager.RegisterFunctionDelegate<UnityEngine.Color>();
        appdomain.DelegateManager.RegisterFunctionDelegate<int>();
        appdomain.DelegateManager.RegisterFunctionDelegate<bool>();
        appdomain.DelegateManager.RegisterFunctionDelegate<long>();
@@ -179,7 +182,38 @@
        appdomain.DelegateManager.RegisterFunctionDelegate<System.Int32, System.Int32, System.Int32>();
        appdomain.DelegateManager.RegisterFunctionDelegate<ILRuntime.Runtime.Intepreter.ILTypeInstance, ILRuntime.Runtime.Intepreter.ILTypeInstance, System.Int32>();
        //DG.Tweening
        appdomain.DelegateManager.RegisterDelegateConvertor<DG.Tweening.TweenCallback<System.Int32>>((act) =>
        {
            return new DG.Tweening.TweenCallback<System.Int32>((value) =>
            {
                ((System.Action<System.Int32>)act)(value);
            });
        });
        appdomain.DelegateManager.RegisterDelegateConvertor<DG.Tweening.Core.DOSetter<UnityEngine.Color>>((act) =>
        {
            return new DG.Tweening.Core.DOSetter<UnityEngine.Color>((pNewValue) =>
            {
                ((System.Action<UnityEngine.Color>)act)(pNewValue);
            });
        });
        appdomain.DelegateManager.RegisterDelegateConvertor<DG.Tweening.Core.DOGetter<UnityEngine.Color>>((act) =>
        {
            return new DG.Tweening.Core.DOGetter<UnityEngine.Color>(() =>
            {
                return ((Func<UnityEngine.Color>)act)();
            });
        });
        appdomain.DelegateManager.RegisterDelegateConvertor<DG.Tweening.TweenCallback>((act) =>
        {
            return new DG.Tweening.TweenCallback(() =>
            {
                ((System.Action)act)();
            });
        });
        //自定义委托转换
        appdomain.DelegateManager.RegisterDelegateConvertor<UnityEngine.Events.UnityAction>((action) =>