From cdf82c1e44b9058aced11ca2848bb9f694c91986 Mon Sep 17 00:00:00 2001
From: liuxue <q3213421wrwqr>
Date: 星期一, 12 七月 2021 15:00:20 +0800
Subject: [PATCH] 8984 支持docolor,onComplete,onKill等等
---
Assets/ILRuntime/Src/ILLauncherProxy.cs | 34 ++++++++++++++++++++++++++++++++++
1 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/Assets/ILRuntime/Src/ILLauncherProxy.cs b/Assets/ILRuntime/Src/ILLauncherProxy.cs
index 1a69453..f578cd7 100644
--- a/Assets/ILRuntime/Src/ILLauncherProxy.cs
+++ b/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) =>
--
Gitblit v1.8.0