| | |
| | | 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>(); |
| | |
| | | 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) => |