public static void SaveSystemResourcesPackageVersion()
 {
     try
     {
         List <SystemResourcesPackageVerion> versionList             = new List <SystemResourcesPackageVerion>(16);
         Dictionary <uint, UniGameResourcesPackage> .Enumerator list = systemResourcesPackageTable.GetEnumerator();
         while (list.MoveNext())
         {
             SystemResourcesPackageVerion version = new SystemResourcesPackageVerion();
             version.PackageId      = list.Current.Value.packageId;
             version.PackageVersion = list.Current.Value.assetBundleVersion;
             versionList.Add(version);
         }
         list.Dispose();
         SaveResourcesPackageVersion(versionList, UniGameResourcesDefine.LocalPackageFileName);
     }
     catch (System.Exception ex)
     {
         Debug.LogError(ex.ToString());
     }
 }
    private static void ReadResourcesPackageVersion(List <SystemResourcesPackageVerion> versionList, string fileName)
    {
        string path = FTLibrary.Text.IStringPath.ConnectPath(PersistentDataPath, fileName);

        byte[] data = FTLibrary.Command.ISafeFile.ReadFile(path);
        if (data == null)
        {
            return;
        }
        BinaryReader reader = new BinaryReader(new MemoryStream(data));
        int          Count  = reader.ReadInt32();

        for (int i = 0; i < Count; i++)
        {
            SystemResourcesPackageVerion version = new SystemResourcesPackageVerion();
            version.PackageId      = reader.ReadUInt32();
            version.PackageVersion = reader.ReadInt32();
            versionList.Add(version);
        }
        reader.Close();
    }