运行代码清理方案

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.ComponentModel;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using UnityEditor;
using UnityEngine;
using VersionFlow.Runtime;

View File

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

View File

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

View File

@ -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;

View File

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

View File

@ -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<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);
}
}

View File

@ -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;

View File

@ -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

View File

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

View File

@ -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
{

View File

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