public static JsonObject CreateJsonObjectWithJsonParse(string json) { if (jsonParse == null) { jsonParse = new JsonObjectWithJsonParse(); } return(jsonParse.ToJsonObject(json)); }
static JsonObjectFactory() { #if UNITY_STANDALONE_WIN || UNITY_IPHONE || UNITY_ANDROID || UNITY_EDITOR JsonString2JsonObject = new JsonObjectWithLitJson(); #elif UNITY_UWP JsonString2JsonObject = new JsonObjectWithUWP(); #else throw new System.Exception("该平台暂不支持"); #endif }