【m】框架优化
This commit is contained in:
@@ -17,15 +17,15 @@ namespace Stary.Evo
|
||||
|
||||
Debug.Log(" 自动运行 ");
|
||||
|
||||
if (!EditorPrefs.HasKey("StartUp"))
|
||||
if (!CustomEditorPrefs.HasKey("StartUp"))
|
||||
{
|
||||
// 通过标记记录是否已经执行过该方法
|
||||
OnEditorStartUp();
|
||||
EditorPrefs.SetInt("StartUp", 1);
|
||||
CustomEditorPrefs.SetInt("StartUp", 1);
|
||||
|
||||
if (EditorPrefs.GetInt("CreatDomainDirectory") == 0)
|
||||
if (CustomEditorPrefs.GetInt("CreatDomainDirectory") == 0)
|
||||
{
|
||||
EditorPrefs.SetInt("CreatDomainDirectory", 1);
|
||||
CustomEditorPrefs.SetInt("CreatDomainDirectory", 1);
|
||||
bool isOk = EditorUtility.DisplayDialog("提示", "发现目录存在缺失,是否检索并创建缺失目录", "是", "否");
|
||||
if (isOk)
|
||||
{
|
||||
@@ -37,17 +37,17 @@ namespace Stary.Evo
|
||||
}
|
||||
}
|
||||
|
||||
if (EditorPrefs.GetString("ChangeHotUpdateSchema") == "")
|
||||
if (CustomEditorPrefs.GetString("ChangeHotUpdateSchema") == "")
|
||||
{
|
||||
ChangeHotUpdateSchema.SetHotUpdateMode(HotUpdateMode.NotUpdate);
|
||||
}
|
||||
else
|
||||
{
|
||||
ChangeHotUpdateSchema.SetHotUpdateMode(
|
||||
Enum.Parse<HotUpdateMode>(EditorPrefs.GetString("ChangeHotUpdateSchema")));
|
||||
Enum.Parse<HotUpdateMode>(CustomEditorPrefs.GetString("ChangeHotUpdateSchema")));
|
||||
}
|
||||
|
||||
if (EditorPrefs.GetString("ChangePlayerSchema") == "")
|
||||
if (CustomEditorPrefs.GetString("ChangePlayerSchema") == "")
|
||||
{
|
||||
ChangePlayerSchema.SetPlayerMode(PLayerMode.EDITOR_SIMULATEMODE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user