public ExceptionTest() { var h = MonoBind.PureScript_ExceptionTest__ctor(); ScriptEngine.CheckException(); SetHandle(h); ObjectStore.Store(this, h); }
public StartInfo() { var h = MonoBind.PureScript_StartInfo__ctor_1(); ScriptEngine.CheckException(); SetHandle(h); ObjectStore.Store(this, h); }
private static int Main(string[] args) { var ptr = GetFuncPointer(); MonoBind.InitBind(GetFuncPointer()); if (args.Length > 0) { var dllPath = args[0]; Assembly assembly = Assembly.Load(dllPath); Type type = assembly.GetType("MonoEntry"); MethodInfo mi = type.GetMethod("Main"); var res = mi.Invoke(null, null); } return(0); }
static void StartTest() { var ptr = ScriptEngine.GetFuncPointer(); MonoBind.InitBind(ptr); DebugHelper.InitLog(true); Debug.LogError(" ========223 中午 ==== +-*x&!@$#$()_+<>?{}|ff ~"); TestStaticClass.StartTest(1); TestCube(); var obj = GameObject.CreatePrimitive(PrimitiveType.Sphere); //obj.AddComponent<TestDelegate>(); obj.AddComponent <TestLoader>(); obj.AddComponent <TestBehaviourScript>(); //obj.AddComponent<TestException>(); }
public void TestCallBack() { MonoBind.PureScript_ExceptionTest_TestCallBack(this.Handle); ScriptEngine.CheckException(); return; }
public void NullPointException() { MonoBind.PureScript_ExceptionTest_NullPointException(this.Handle); ScriptEngine.CheckException(); return; }