void Awake() { JSDLL.JSClassDefinition GlobalContextClz = new JSDLL.JSClassDefinition() { Attributes = JSDLL.JSClassAttributes.kJSClassAttributeNoAutomaticPrototype, ClassName = "GlobalContext" }; try { INTPTR clz = JSDLL.JSClassCreate(ref GlobalContextClz); gtx = JSDLL.JSGlobalContextCreate(clz); }catch (System.Exception e) { print(e.ToString()); } }