更新dll
parent
89c35d6d65
commit
3cf9f587f5
|
|
@ -1 +1 @@
|
|||
Subproject commit d06f2c1852cc08cfea06edbdc428d28e7360dd92
|
||||
Subproject commit df1b4d56b0e9af62edc0636e011e53b375a22817
|
||||
|
|
@ -15,23 +15,13 @@ namespace ProjectBuilder
|
|||
return;
|
||||
}
|
||||
var dllPath = Application.dataPath + "/../Library/ScriptAssemblies/GamePlay.dll";
|
||||
//Assets/Code/Scripts/Gameplay
|
||||
var codePath = Application.dataPath + "/Code/Scripts/Gameplay";
|
||||
//Assets/Code/Scripts/GamePlay_Dll
|
||||
var codePath = Application.dataPath + "/Code/Scripts/GamePlay_Dll";
|
||||
var targetDllPath = codePath + "/GamePlay.dll";
|
||||
if (File.Exists(targetDllPath))
|
||||
{
|
||||
// 说明已经转换过了
|
||||
Debug.LogError("已经转换过了");
|
||||
return;
|
||||
}
|
||||
|
||||
// 删除Code/Scripts/Gameplay下的所有文件
|
||||
var directoryInfo = new System.IO.DirectoryInfo(codePath);
|
||||
directoryInfo.Delete(true);
|
||||
|
||||
|
||||
// 复制GamePlay.dll到Code/Scripts/Gameplay
|
||||
Directory.CreateDirectory(codePath);
|
||||
File.Copy(dllPath, codePath + "/GamePlay.dll", true);
|
||||
File.Copy(dllPath, targetDllPath, true);
|
||||
|
||||
// 刷新
|
||||
AssetDatabase.Refresh();
|
||||
|
|
|
|||
Loading…
Reference in New Issue