Ejemplo n.º 1
0
 public AssetBundleModel Create(AssetBundle assetBundle)
 {
     return new AssetBundleModel()
     {
         Id = assetBundle.Id,
         Name = assetBundle.Name,
         Url = assetBundle.Url,
         Version = (uint) assetBundle.Version
     };
 }
Ejemplo n.º 2
0
 public AssetBundle Parse(AssetBundleModel model)
 {
     try
     {
         var assetBundle = new AssetBundle()
         {
             Id = model.Id,
             Name = model.Name,
             Url = model.Url,
             Version = (int) model.Version
         };
         return assetBundle;
     }
     catch
     {
         return null;
     }
 }