1
This commit is contained in:
21
Unity/Scripts/Config/AutoExec.cs
Normal file
21
Unity/Scripts/Config/AutoExec.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using Sirenix.OdinInspector;
|
||||
using System.IO;
|
||||
using Cysharp.Threading.Tasks;
|
||||
namespace BITKit
|
||||
{
|
||||
public class AutoExec : Exec
|
||||
{
|
||||
public string path;
|
||||
public override FileInfo[] GetFiles()
|
||||
{
|
||||
var path = Utility.Path.Get(this.path);
|
||||
DirectoryInfo directoryInfo = new(path);
|
||||
BIT4Log.Log<AutoExec>($"正在读取配置文件:{path}");
|
||||
directoryInfo.Create();
|
||||
return directoryInfo.GetFiles();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user