111
This commit is contained in:
@@ -16,15 +16,14 @@ public static class CreatDomainDirectory
|
||||
|
||||
Debug.Log(" 自动运行 ");
|
||||
|
||||
if (!EditorPrefs.HasKey("StartUp"))
|
||||
if (!EditorPrefs.HasKey("ARMaz_StartUp"))
|
||||
{
|
||||
// 通过标记记录是否已经执行过该方法
|
||||
OnEditorStartUp();
|
||||
EditorPrefs.SetInt("StartUp", 1);
|
||||
|
||||
if (EditorPrefs.GetInt("CreatDomainDirectory") == 0)
|
||||
EditorPrefs.SetInt("ARMaz_StartUp", 1);
|
||||
if (EditorPrefs.GetInt("ARMaz_CreatDomainDirectory") == 0)
|
||||
{
|
||||
EditorPrefs.SetInt("CreatDomainDirectory", 1);
|
||||
EditorPrefs.SetInt("ARMaz_CreatDomainDirectory", 1);
|
||||
bool isOk = EditorUtility.DisplayDialog("提示", "发现目录存在缺失,是否检索并创建缺失目录", "是", "否");
|
||||
if (isOk)
|
||||
{
|
||||
@@ -44,7 +43,7 @@ public static class CreatDomainDirectory
|
||||
/// </summary>
|
||||
private static void OnEditorQuit()
|
||||
{
|
||||
EditorPrefs.DeleteKey("StartUp");
|
||||
EditorPrefs.DeleteKey("ARMaz_StartUp");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user