DCS/ruiyiweiUX/Assets/StreamingAssets/README.md

32 lines
689 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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