Esempio n. 1
0
        public ExceptionTest()
        {
            var h = MonoBind.PureScript_ExceptionTest__ctor();

            ScriptEngine.CheckException();
            SetHandle(h);
            ObjectStore.Store(this, h);
        }
Esempio n. 2
0
        public StartInfo()
        {
            var h = MonoBind.PureScript_StartInfo__ctor_1();

            ScriptEngine.CheckException();
            SetHandle(h);
            ObjectStore.Store(this, h);
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
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>();
    }
Esempio n. 5
0
 public void TestCallBack()
 {
     MonoBind.PureScript_ExceptionTest_TestCallBack(this.Handle);
     ScriptEngine.CheckException();
     return;
 }
Esempio n. 6
0
 public void NullPointException()
 {
     MonoBind.PureScript_ExceptionTest_NullPointException(this.Handle);
     ScriptEngine.CheckException();
     return;
 }