示例#1
0
        protected virtual void OnInit()
        {
            Luna.LoadAssembly("mscorlib");
            Luna.LoadAssembly("UnityEngine");
            Luna.LoadAssembly("UnityEngine.UI");

            Converter.RegisterAction <UnityEngine.Object>();
            Converter.RegisterAction <GameObject>();
            Converter.RegisterAction <AsyncOperation>();

            Converter.RegisterFunc <UnityEngine.Object>();
            Converter.RegisterFunc <GameObject>();

            Converter.RegDelegateFactory(IEnumeratorBridge.Create);

            Converter.RegDelegateFactory(CreateUnityAction);
        }