DEG-25 [Feat] 강화 세이브 연동 테스트 구현

This commit is contained in:
99jamin 2025-05-02 14:34:10 +09:00
parent 6c7536c1ae
commit 9419f9f9b9
2 changed files with 13 additions and 2 deletions

BIN
Assets/KJM/KJM.unity (Stored with Git LFS)

Binary file not shown.

View File

@ -1,3 +1,4 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
@ -18,6 +19,15 @@ public class UpgradeStat : MonoBehaviour, ISaveable
};
void Awake()
{
ResetLevel();
}
/// <summary>
/// 레벨 리셋 함수
/// 테스트를 위해 퍼블릭으로 설정
/// </summary>
public void ResetLevel()
{
foreach (var stat in maxLevels.Keys)
{
@ -77,6 +87,7 @@ public class UpgradeStat : MonoBehaviour, ISaveable
/// <returns></returns>
public Save ExtractSaveData()
{
Debug.Log("UpgradeStat extracting save data");
return new Save
{
dungeonSave = new DungeonSave