하트 데이터 시스템 추가
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user