运行代码清理方案

This commit is contained in:
Alienjack 2025-09-03 19:00:54 +08:00
parent 29a8705ef8
commit 1a6d931672
11 changed files with 10 additions and 30 deletions

View File

@ -1,10 +1,5 @@
using System; using System.Collections.Generic;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq; using System.Linq;
using System.Reflection;
using System.Text;
using UnityEditor; using UnityEditor;
using UnityEngine; using UnityEngine;
using VersionFlow.Runtime; using VersionFlow.Runtime;

View File

@ -1,6 +1,4 @@
using System; using System.Collections.Generic;
using System.Collections.Generic;
using System.IO;
using System.Linq; using System.Linq;
using UnityEditor; using UnityEditor;
using UnityEngine; using UnityEngine;

View File

@ -1,5 +1,4 @@
using System; using UnityEditor;
using UnityEditor;
using UnityEngine; using UnityEngine;
using VersionFlow.Runtime; using VersionFlow.Runtime;

View File

@ -5,7 +5,6 @@ using System.Diagnostics;
using System.IO; using System.IO;
using System.Text; using System.Text;
using UnityEngine; using UnityEngine;
using UnityEngine.AI;
using UnityEngine.Assertions; using UnityEngine.Assertions;
using UnityEngine.Networking; using UnityEngine.Networking;
using Object = UnityEngine.Object; using Object = UnityEngine.Object;

View File

@ -388,7 +388,7 @@ namespace VersionFlow.Runtime
{ {
var ab = GetEntityByAsset(asset); var ab = GetEntityByAsset(asset);
if (ab != null) if (ab != null)
{ {
ab.UnLoadAsset(asset); ab.UnLoadAsset(asset);
} }

View File

@ -1,7 +1,4 @@
using System; using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace VersionFlow.Runtime namespace VersionFlow.Runtime
{ {
@ -11,7 +8,7 @@ namespace VersionFlow.Runtime
void ShowDownloadProgress(ulong downloadBytes, ulong totalBytes); void ShowDownloadProgress(ulong downloadBytes, ulong totalBytes);
void HideDownloadProgress(); void HideDownloadProgress();
void DownloadConfirm(ulong totalSize, Action<bool> confirm); void DownloadConfirm(ulong totalSize, Action<bool> 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); void SetVersion(string localVer, string remoteVer);
} }
} }

View File

@ -86,7 +86,7 @@ namespace VersionFlow.Runtime
{ {
if (!IsDone) if (!IsDone)
{ {
throw new Exception("Asset Load not Finish"); throw new Exception("Asset Load not Finish");
} }
var result = asset as T; var result = asset as T;
return result; return result;

View File

@ -2,8 +2,6 @@
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine; using UnityEngine;
namespace VersionFlow.Runtime namespace VersionFlow.Runtime
@ -119,7 +117,8 @@ namespace VersionFlow.Runtime
} }
if (m_downloadingAB.IsDownloading) if (m_downloadingAB.IsDownloading)
yield return new WaitUntil(() => { yield return new WaitUntil(() =>
{
return !m_downloadingAB.IsDownloading; return !m_downloadingAB.IsDownloading;
}); });
else else

View File

@ -72,5 +72,5 @@ namespace VersionFlow
return $"{uri.Scheme}://{uri.Authority}{parentPath.TrimEnd('/')}"; return $"{uri.Scheme}://{uri.Authority}{parentPath.TrimEnd('/')}";
} }
} }
} }
#endif #endif

View File

@ -1,9 +1,4 @@
using System; using UnityEngine;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
namespace VersionFlow.Runtime namespace VersionFlow.Runtime
{ {

View File

@ -1,5 +1,3 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine; using UnityEngine;
namespace VersionFlow.Runtime namespace VersionFlow.Runtime