diff --git a/Assets/VersionFlow/Editor/InspectorEditors/BuilderConfigEditor.cs b/Assets/VersionFlow/Editor/InspectorEditors/BuilderConfigEditor.cs index 7eca287..4dc0fb1 100644 --- a/Assets/VersionFlow/Editor/InspectorEditors/BuilderConfigEditor.cs +++ b/Assets/VersionFlow/Editor/InspectorEditors/BuilderConfigEditor.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.IO; +using System.Collections.Generic; using System.Linq; -using System.Reflection; -using System.Text; using UnityEditor; using UnityEngine; using VersionFlow.Runtime; diff --git a/Assets/VersionFlow/Editor/SetupInstallBundle.cs b/Assets/VersionFlow/Editor/SetupInstallBundle.cs index 5b0e034..979369d 100644 --- a/Assets/VersionFlow/Editor/SetupInstallBundle.cs +++ b/Assets/VersionFlow/Editor/SetupInstallBundle.cs @@ -1,6 +1,4 @@ -using System; -using System.Collections.Generic; -using System.IO; +using System.Collections.Generic; using System.Linq; using UnityEditor; using UnityEngine; diff --git a/Assets/VersionFlow/Editor/VersionFlowSettingWnd.cs b/Assets/VersionFlow/Editor/VersionFlowSettingWnd.cs index 6d4a303..3782dec 100644 --- a/Assets/VersionFlow/Editor/VersionFlowSettingWnd.cs +++ b/Assets/VersionFlow/Editor/VersionFlowSettingWnd.cs @@ -1,5 +1,4 @@ -using System; -using UnityEditor; +using UnityEditor; using UnityEngine; using VersionFlow.Runtime; diff --git a/Assets/VersionFlow/Runtime/ABEntity.cs b/Assets/VersionFlow/Runtime/ABEntity.cs index 91a14ae..90dd9e9 100644 --- a/Assets/VersionFlow/Runtime/ABEntity.cs +++ b/Assets/VersionFlow/Runtime/ABEntity.cs @@ -5,7 +5,6 @@ using System.Diagnostics; using System.IO; using System.Text; using UnityEngine; -using UnityEngine.AI; using UnityEngine.Assertions; using UnityEngine.Networking; using Object = UnityEngine.Object; diff --git a/Assets/VersionFlow/Runtime/BundleManager.cs b/Assets/VersionFlow/Runtime/BundleManager.cs index 359fb77..70f3058 100644 --- a/Assets/VersionFlow/Runtime/BundleManager.cs +++ b/Assets/VersionFlow/Runtime/BundleManager.cs @@ -388,7 +388,7 @@ namespace VersionFlow.Runtime { var ab = GetEntityByAsset(asset); if (ab != null) - { + { ab.UnLoadAsset(asset); } diff --git a/Assets/VersionFlow/Runtime/IVersionFlowVisual.cs b/Assets/VersionFlow/Runtime/IVersionFlowVisual.cs index 9fe3a03..b662c45 100644 --- a/Assets/VersionFlow/Runtime/IVersionFlowVisual.cs +++ b/Assets/VersionFlow/Runtime/IVersionFlowVisual.cs @@ -1,7 +1,4 @@ using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; namespace VersionFlow.Runtime { @@ -11,7 +8,7 @@ namespace VersionFlow.Runtime void ShowDownloadProgress(ulong downloadBytes, ulong totalBytes); void HideDownloadProgress(); void DownloadConfirm(ulong totalSize, Action confirm); - void OnError(string msg, string btnTxt, Action callback,string title = "错误"); + void OnError(string msg, string btnTxt, Action callback, string title = "错误"); void SetVersion(string localVer, string remoteVer); } } diff --git a/Assets/VersionFlow/Runtime/LoadAssetRequest.cs b/Assets/VersionFlow/Runtime/LoadAssetRequest.cs index b49203c..517061b 100644 --- a/Assets/VersionFlow/Runtime/LoadAssetRequest.cs +++ b/Assets/VersionFlow/Runtime/LoadAssetRequest.cs @@ -86,7 +86,7 @@ namespace VersionFlow.Runtime { if (!IsDone) { - throw new Exception("Asset Load not Finish"); + throw new Exception("Asset Load not Finish"); } var result = asset as T; return result; diff --git a/Assets/VersionFlow/Runtime/OptionalBundleDownloader.cs b/Assets/VersionFlow/Runtime/OptionalBundleDownloader.cs index bca8b0c..40a77fa 100644 --- a/Assets/VersionFlow/Runtime/OptionalBundleDownloader.cs +++ b/Assets/VersionFlow/Runtime/OptionalBundleDownloader.cs @@ -2,8 +2,6 @@ using System.Collections; using System.Collections.Generic; using System.Linq; -using System.Text; -using System.Threading.Tasks; using UnityEngine; namespace VersionFlow.Runtime @@ -119,7 +117,8 @@ namespace VersionFlow.Runtime } if (m_downloadingAB.IsDownloading) - yield return new WaitUntil(() => { + yield return new WaitUntil(() => + { return !m_downloadingAB.IsDownloading; }); else diff --git a/Assets/VersionFlow/Runtime/PathHelper.cs b/Assets/VersionFlow/Runtime/PathHelper.cs index 397d71e..861e327 100644 --- a/Assets/VersionFlow/Runtime/PathHelper.cs +++ b/Assets/VersionFlow/Runtime/PathHelper.cs @@ -72,5 +72,5 @@ namespace VersionFlow return $"{uri.Scheme}://{uri.Authority}{parentPath.TrimEnd('/')}"; } } -} +} #endif \ No newline at end of file diff --git a/Assets/VersionFlow/Runtime/UnityResourceAPIOverride.cs b/Assets/VersionFlow/Runtime/UnityResourceAPIOverride.cs index 0373936..0c3d60f 100644 --- a/Assets/VersionFlow/Runtime/UnityResourceAPIOverride.cs +++ b/Assets/VersionFlow/Runtime/UnityResourceAPIOverride.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using UnityEngine; +using UnityEngine; namespace VersionFlow.Runtime { diff --git a/Assets/VersionFlow/Runtime/VersionFlowCoroutiner.cs b/Assets/VersionFlow/Runtime/VersionFlowCoroutiner.cs index a7e9946..a174ce1 100644 --- a/Assets/VersionFlow/Runtime/VersionFlowCoroutiner.cs +++ b/Assets/VersionFlow/Runtime/VersionFlowCoroutiner.cs @@ -1,5 +1,3 @@ -using System.Collections; -using System.Collections.Generic; using UnityEngine; namespace VersionFlow.Runtime