| | |
| | | public const int BYTE_PER_KILOBYTE = 1024;
|
| | | public const int BYTE_PER_MILLIONBYTE = 1048576;
|
| | |
|
| | | public float progress {
|
| | | get {
|
| | | return Mathf.Clamp01((float)RemoteFile.TotalDownloadedSize / totalSize);
|
| | | }
|
| | | } |
| | | public float progress { get { return Mathf.Clamp01((float)RemoteFile.TotalDownloadedSize / totalSize); } }
|
| | | |
| | | List<AssetVersion> tasks = new List<AssetVersion>(); |
| | | public bool isDone { get { return step == Step.Completed; } }
|
| | |
| | | Action downLoadOkCallBack;
|
| | |
|
| | | Step m_Step = Step.None;
|
| | | public Step step {
|
| | | public Step step
|
| | | {
|
| | | get { return m_Step; }
|
| | | set {
|
| | | set
|
| | | {
|
| | | if (m_Step != value)
|
| | | {
|
| | | m_Step = value;
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | ExceptionCatcher.ReportException("游戏启动阶段文件下载失败", "文件名:" + _assetVersion.relativePath);
|
| | | var remoteURL = StringUtility.Contact(VersionUtility.Instance.versionInfo.GetResourcesURL(VersionConfig.Get().branch), "/", _assetVersion.relativePath);
|
| | | var localURL = StringUtility.Contact(ResourcesPath.Instance.ExternalStorePath, _assetVersion.relativePath);
|
| | |
|