32 lines
689 B
Markdown
32 lines
689 B
Markdown
|
|
# 1.用法
|
|||
|
|
- StreamingAssets文件夹中folderInfo.json文件填写需要检测的文件夹名称和包含的dll文件数量
|
|||
|
|
~~~
|
|||
|
|
{
|
|||
|
|
"folders":
|
|||
|
|
[
|
|||
|
|
{
|
|||
|
|
"folderName":"文件夹0",
|
|||
|
|
"fileCount":2
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"folderName":"文件夹1",
|
|||
|
|
"fileCount":3
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"folderName":"文件夹2",
|
|||
|
|
"fileCount":3
|
|||
|
|
}
|
|||
|
|
]
|
|||
|
|
}
|
|||
|
|
~~~
|
|||
|
|
- 在项目需要检测的地方调用静态方法进行判断
|
|||
|
|
~~~
|
|||
|
|
if (!FolderChecker.CheckDllFileCount())
|
|||
|
|
{
|
|||
|
|
Debug.Log("dll文件缺失,退出程序");
|
|||
|
|
Application.Quit();
|
|||
|
|
}
|
|||
|
|
~~~
|
|||
|
|
|
|||
|
|
# 2.注意事项
|
|||
|
|
- json文件保存时请使用utf-8
|