fix: player null exception 수정
This commit is contained in:
1 parent
0824f35c5b
commit
dddf9552bf
1 file changed
+1
-1
@@ -23,7 +23,7 @@ namespace TON
|
|||||||
// 플레이어가 가지고 있는 캐릭터들의 데이터 불러옴
|
// 플레이어가 가지고 있는 캐릭터들의 데이터 불러옴
|
||||||
List<PlayerData> players = PlayerDataManager.Singleton.playersData;
|
List<PlayerData> players = PlayerDataManager.Singleton.playersData;
|
||||||
|
|
||||||
if (players.Count == 0)
|
if (players == null || players.Count == 0)
|
||||||
{
|
{
|
||||||
// 현재 가지고 있는 캐릭터가 없다면 CharaterCreateUI 를 보여주고
|
// 현재 가지고 있는 캐릭터가 없다면 CharaterCreateUI 를 보여주고
|
||||||
UIManager.Show<CharaterCreateUI>(UIList.CharaterCreateUI);
|
UIManager.Show<CharaterCreateUI>(UIList.CharaterCreateUI);
|
||||||
|
|||||||
Reference in new issue
Block a user