static void Setting() { TextAsset archiveSetting = Resources.Load("ArchiveSetting/config") as TextAsset; string content = archiveSetting.text; ArchiveDataForm msgJsonRecieve = JsonMapper.ToObject <ArchiveDataForm>(content); Debug.Log(content); PlayerSettings.companyName = msgJsonRecieve.companyName; PlayerSettings.productName = msgJsonRecieve.productName; PlayerSettings.bundleIdentifier = msgJsonRecieve.bundleIdentifier; PlayerSettings.bundleVersion = msgJsonRecieve.bundleVersion; PlayerSettings.shortBundleVersion = msgJsonRecieve.shortBundleVersion; }
// Use this for initialization void Awake() { Instance = this; TextAsset archiveSetting = Resources.Load("ArchiveSetting/config") as TextAsset; string content = archiveSetting.text; ArchiveDataForm msgJsonRecieve = JsonMapper.ToObject <ArchiveDataForm>(content); curVersion = int.Parse(msgJsonRecieve.bundleVersion.Remove(1, 1).Remove(2, 1)); //Debug.Log(msgJsonRecieve.bundleVersion.Remove(1,1).Remove(2,1)); platform = msgJsonRecieve.platform; ftpUrl = msgJsonRecieve.ftpUrl; tokenUrl = msgJsonRecieve.tokenUrl; gameUrl = msgJsonRecieve.gameUrl; versionUrl = msgJsonRecieve.versionUrl; signUrl = msgJsonRecieve.signUrl; keyStr = msgJsonRecieve.keyStr; apkUrl = msgJsonRecieve.apkUrl; apkName = msgJsonRecieve.apkName; agent = msgJsonRecieve.agent; }