(client) chore:Clean code
This commit is contained in:
@ -1,13 +1,10 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml.Linq;
|
||||
using Newtonsoft.Json;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Networking;
|
||||
using Formatting = Newtonsoft.Json.Formatting;
|
||||
|
||||
namespace Configs
|
||||
@ -182,7 +179,7 @@ namespace Configs
|
||||
var xmlFiles = Directory.GetFiles(dir, "*.xml", SearchOption.AllDirectories);
|
||||
xmlFilePaths.AddRange(xmlFiles);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@ -275,7 +272,7 @@ namespace Configs
|
||||
|
||||
// 加载指定路径下的所有资源
|
||||
var resources = Resources.LoadAll<T>(path);
|
||||
|
||||
|
||||
foreach (var resource in resources)
|
||||
{
|
||||
if (resource != null)
|
||||
|
Reference in New Issue
Block a user