示例#1
0
 void BeginUpdateResource()
 {
     AssetsUpdateManager.getInstance().Check
         (mstrRemoteMD5Url,                // "file:///D:/StreamingAssets/md5filelist.txt",
         OnAssetsUpdateCmp,
         OnAssetsUpdateProgress
         );
 }
示例#2
0
        void CheckVersions(string url)
        {
            AssetsUpdateManager.getInstance().StartCheck
            (
                url,                // "file:///D:/StreamingAssets/md5filelist.txt",
                (string[] arrayUpdatePath) =>
            {
                if (arrayUpdatePath != null && arrayUpdatePath.Length > 0)
                {
                    Facade.SendNotification(NotificationType.NetWorkCheck);
                }
                else
                {
//						Facade.SendNotification(NotificationType.V2V_BeginUpdateResource);
                    Facade.SendNotification(NotificationType.M2M_ResourceUpdateOver);
                }
            }
            );
        }