하트 데이터 시스템 추가

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

@@ -7,7 +7,7 @@ namespace TON
public class PlayerDataManager : SingletonBase<PlayerDataManager>
{
// 사용자가 생성해둔 플레이어 데이터를 싱글톤으로 전역 사용하기 위함
public List<PlayerData> players { get; private set; }
public List<PlayerData> playersData { get; private set; }
protected override void Awake()
{
@@ -17,11 +17,12 @@ namespace TON
private void LoadPlayerData()
{
players = JSONLoader.LoadFromResources<List<PlayerData>>("Player");
if (players == null)
playersData = JSONLoader.LoadFromResources<List<PlayerData>>("Player");
if (playersData == null)
{
players = new List<PlayerData>();
playersData = new List<PlayerData>();
}
}
}
}