using System.Collections; using System.Collections.Generic; using UnityEngine; namespace TON { public class PlayerDataManager : SingletonBase { // 사용자가 생성해둔 플레이어 데이터를 싱글톤으로 전역 사용하기 위함 public List players { get; private set; } protected override void Awake() { base.Awake(); LoadPlayerData(); } private void LoadPlayerData() { players = JSONLoader.LoadFromResources>("Player"); if (players == null) { players = new List(); Debug.LogError("⚠️ Player data loading failed. Check if 'Player.json' exists in Resources folder."); } } } }