하트 데이터 시스템 추가

This commit is contained in:
aube.lee
2025-02-04 12:43:50 +09:00
parent b8ed6ebc26
commit b2dcd2ad01
15 changed files with 216 additions and 9 deletions

View File

@@ -39,7 +39,7 @@ namespace TON
public void Initialize()
{
int playerIndex = PlayerPrefs.GetInt("SelectedPlayerIndex", 0);
PlayerData playerData = PlayerDataManager.Singleton.players[playerIndex];
PlayerData playerData = PlayerDataManager.Singleton.playersData[playerIndex];
currentHP = maxHP = playerData.hp;
currentSP = maxSP = playerData.mp;