Exemplo n.º 1
0
 protected override void Parse(Dictionary <string, JSONValue> dict)
 {
     dict           = dict["download"].AsDict();
     this.packageID = int.Parse(dict["id"].AsString());
     if (this.packageID != this.asset.packageID)
     {
         Debug.LogError("Got asset store server build result from mismatching package");
     }
     else
     {
         this.asset.previewInfo.packageUrl    = !dict.ContainsKey("url") ? "" : dict["url"].AsString(true);
         this.asset.previewInfo.encryptionKey = !dict.ContainsKey("key") ? "" : dict["key"].AsString(true);
         JSONValue value6 = dict["progress"];
         this.asset.previewInfo.buildProgress = (!value6.IsFloat() ? float.Parse(dict["progress"].AsString(true), CultureInfo.InvariantCulture) : dict["progress"].AsFloat(true)) / 100f;
     }
 }