public static int StartTest(string info) { DebugHelper.InitLog(true); Debug.LogError(" == 223 中午 == +-*x&!@$#$()_+<>?{}|ff ~ " + info); TestStaticClass.StartTest(1); var obj = GameObject.CreatePrimitive(PrimitiveType.Sphere); //obj.AddComponent<TestDelegate>(); obj.AddComponent <TestLoader>(); obj.AddComponent <TestBehaviourScript>(); //obj.AddComponent<TestException>(); return(123); }
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>(); }