void LoadLocalVersionFile(string relativePath) { localVersionFileRelativePath = relativePath; if (File.Exists(Application.temporaryCachePath + "/" + relativePath + suffix)) { localVersionConfig = JsonMapper.ToObject <VersionConfig>( File.ReadAllText(Application.temporaryCachePath + "/" + relativePath + suffix)); } else { TextAsset objInResources = Resources.Load(relativePath, typeof(TextAsset)) as TextAsset; localVersionConfig = JsonMapper.ToObject <VersionConfig>(objInResources.text); Resources.UnloadAsset(objInResources); } if (!Directory.Exists(Application.temporaryCachePath + "/" + localVersionConfig.bundleRelativePath)) { Directory.CreateDirectory(Application.temporaryCachePath + "/" + localVersionConfig.bundleRelativePath); } }