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