@@ -32,7 +32,7 @@ namespace Ichni.Editor
|
||||
|
||||
isPlaying = !isPlaying;
|
||||
|
||||
EditorManager.instance.songInformation.songTime = audioSource.time - EditorManager.instance.songInformation.offset;
|
||||
audioSource.time = EditorManager.instance.songInformation.songTime + EditorManager.instance.songInformation.offset;
|
||||
if (isPlaying)
|
||||
{
|
||||
Trail.FreezeAllTrails(!isPlaying);
|
||||
@@ -51,8 +51,9 @@ namespace Ichni.Editor
|
||||
}
|
||||
public void PauseMusic()
|
||||
{
|
||||
if (isPlaying) EditorManager.instance.songInformation.songTime = audioSource.time - EditorManager.instance.songInformation.offset;
|
||||
|
||||
isPlaying = false;
|
||||
EditorManager.instance.songInformation.songTime = audioSource.time - EditorManager.instance.songInformation.offset;
|
||||
audioSource.Pause();
|
||||
Trail.FreezeAllTrails(!isPlaying);
|
||||
}
|
||||
|
||||
@@ -481,7 +481,7 @@ namespace Ichni
|
||||
private void AutoSave()
|
||||
{
|
||||
List<string> saveFiles = GetSortedSaveFiles();
|
||||
|
||||
|
||||
if (saveFiles.Count > 0)
|
||||
{
|
||||
// 删除最旧的存档(如果超过数量)
|
||||
@@ -490,14 +490,14 @@ namespace Ichni
|
||||
string oldestSave = saveFiles[saveFiles.Count - 1];
|
||||
File.Delete(oldestSave);
|
||||
saveFiles.RemoveAt(saveFiles.Count - 1);
|
||||
|
||||
|
||||
LogWindow.Log("AutoSave finished, the oldest file deleted");
|
||||
}
|
||||
else
|
||||
{
|
||||
LogWindow.Log("AutoSave finished");
|
||||
}
|
||||
|
||||
|
||||
// 依次重命名存档
|
||||
for (int i = saveFiles.Count - 1; i >= 0; i--)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user