DEG-165 [Feat] 엔딩 시 세이브 초기화

This commit is contained in:
99jamin 2025-05-14 14:38:51 +09:00
parent c36be7ab93
commit a4a9d2ac8f
2 changed files with 7 additions and 1 deletions

View File

@ -187,7 +187,7 @@ public class SaveManager : Singleton<SaveManager>
backupSave = fresh.InitSave();
SaveMain();
SaveBackup();
saveDataController.ApplySaveData(fresh);
saveDataController.ApplySaveData(mainSave);
}

View File

@ -23,6 +23,9 @@ public partial class GameManager
{
// npc와의 대화 출력, Phase = zero
StartNPCDialogue(GamePhase.ZeroEnd);
//세이브 초기화
SaveManager.Instance.ResetSave();
}
// 엔딩 관련 메서드. 7일차에 실행
@ -31,6 +34,9 @@ public partial class GameManager
// npc와의 마지막 대화 출력
StartNPCDialogue(GamePhase.End);
//세이브 초기화
SaveManager.Instance.ResetSave();
// 플레이어 상태에 따라 엔딩 판별
// EndingType endingType = DetermineEnding();