DEG-25-강화-기초-로직-구현 #10

Merged
jay merged 5 commits from DEG-25-강화-기초-로직-구현 into main 2025-05-07 04:38:27 +00:00
2 changed files with 13 additions and 2 deletions
Showing only changes of commit 9419f9f9b9 - Show all commits

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