| | |
| | | #endif |
| | | //对LitJson进行注册 |
| | | LitJson.JsonMapper.RegisterILRuntimeCLRRedirection(_appdomain); |
| | | RegisterCrossBindingAdaptor(); |
| | | RegisterCrossBindingAdaptor(appdomain); |
| | | RegisterValueTypeBinder(); |
| | | RegisterDelegate(); |
| | | #if UNITY_EDITOR |
| | |
| | | } |
| | | |
| | | //注册跨域继承适配器 |
| | | private void RegisterCrossBindingAdaptor() |
| | | public static void RegisterCrossBindingAdaptor(ILRuntime.Runtime.Enviorment.AppDomain domain) |
| | | { |
| | | appdomain.RegisterCrossBindingAdaptor(new CoroutineAdapter()); |
| | | appdomain.RegisterCrossBindingAdaptor(new DtcBasicAdapter()); |
| | | appdomain.RegisterCrossBindingAdaptor(new GameNetPackBasicAdapter()); |
| | | domain.RegisterCrossBindingAdaptor(new CoroutineAdapter()); |
| | | domain.RegisterCrossBindingAdaptor(new DtcBasicAdapter()); |
| | | domain.RegisterCrossBindingAdaptor(new GameNetPackBasicAdapter()); |
| | | domain.RegisterCrossBindingAdaptor(new OperationBaseAdapter()); |
| | | } |
| | | |
| | | //注册值类型绑定 |