static public void ToolsCopyAssetbundlesAndScripts() { { // 删除ab资源 string outputPath = Path.Combine(Application.persistentDataPath, AssetBundleConfig.AssetBundlesFolderName); UtilityGame.SafeDeleteDir(outputPath); } { // 删除LuaScripts资源 string outputPath = Path.Combine(Application.persistentDataPath, AssetBundleConfig.LuaScriptsFolderName); UtilityGame.SafeDeleteDir(outputPath); } PackageUtils.CopyCurSettingAssetBundlesToStreamingAssetsNoRefresh(); PackageUtils.CopyLuaScriptsToStreamingAssets(); AssetDatabase.Refresh(); LaunchAssetBundleServer.CheckAndDoRunning(); }