优化日志
This commit is contained in:
@@ -36,7 +36,7 @@ namespace Stary.Evo.InformationSave
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError($"{typeof(T)}:不存在该信息:" + desc);
|
||||
Debug.LogError($"UnityEvo:{typeof(T)}:不存在该信息:" + desc);
|
||||
return default(T);
|
||||
}
|
||||
}
|
||||
@@ -62,7 +62,7 @@ namespace Stary.Evo.InformationSave
|
||||
ScriptObjectSave scriptObjectSaveData = Resources.Load<ScriptObjectSave>(path);
|
||||
if (scriptObjectSaveData == null)
|
||||
{
|
||||
Debug.LogError("ScriptObjectSaveData配置文件丢失");
|
||||
Debug.LogError("UnityEvo:ScriptObjectSaveData配置文件丢失");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace Stary.Evo.InformationSave
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError("ScriptObjectSaveData中未存储场景:"+ sceneNmae + " 中物体:" + gameObject.name + "的数据!!!");
|
||||
Debug.LogError("UnityEvo:ScriptObjectSaveData中未存储场景:"+ sceneNmae + " 中物体:" + gameObject.name + "的数据!!!");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ namespace Stary.Evo.InformationSave
|
||||
|
||||
if (scriptObjectSaveData.dic == null)
|
||||
{
|
||||
Debug.LogError("ScriptObjectSaveData的dic为空");
|
||||
Debug.LogError("UnityEvo:ScriptObjectSaveData的dic为空");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -151,7 +151,7 @@ namespace Stary.Evo.InformationSave
|
||||
AssetDatabase.CreateAsset(scriptableObject, "Assets/" + ResourcesFolderName + "/" + InformationSaveDataFolderName + "/" + ScriptObjectSaveDataFileName + ".asset");
|
||||
AssetDatabase.SaveAssets();
|
||||
AssetDatabase.Refresh();
|
||||
Debug.Log("创建了: " + "Assets/" + ResourcesFolderName + "/" + InformationSaveDataFolderName + "/" + ScriptObjectSaveDataFileName + ".asset 资产");
|
||||
Debug.Log("UnityEvo:创建了: " + "Assets/" + ResourcesFolderName + "/" + InformationSaveDataFolderName + "/" + ScriptObjectSaveDataFileName + ".asset 资产");
|
||||
return scriptableObject;
|
||||
}
|
||||
|
||||
@@ -169,7 +169,7 @@ namespace Stary.Evo.InformationSave
|
||||
if (GUILayout.Button("保存"))
|
||||
{
|
||||
Save(i);
|
||||
if (PlayingSave()) Debug.Log("保存成功!");
|
||||
if (PlayingSave()) Debug.Log("UnityEvo:保存成功!");
|
||||
}
|
||||
|
||||
if (GUILayout.Button("上移") && i > 0)
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0f5b94406351c9c4984472ef696d4888
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user