[UPDATE] UserData PlayerPrefs 저장 항목 수정

This commit is contained in:
Jay 2025-03-14 10:29:46 +09:00
parent c2efbd651d
commit 88a9a6303a

View File

@ -35,16 +35,15 @@ public class UserManager : Singleton<UserManager>
Debug.Log("유저 데이터가 비어있습니다"); Debug.Log("유저 데이터가 비어있습니다");
return; return;
} }
Debug.Log("유저정보"+userData.nickname);
UserId = userData.id; UserId = userData.id;
Email = userData.email; Email = userData.email;
Nickname = userData.nickname; Nickname = userData.nickname;
Rating = userData.rating; Rating = userData.rating;
Score = userData.score; // Score = userData.score;
ImageIndex = userData.imageIndex; ImageIndex = userData.imageIndex;
Win = userData.win; // Win = userData.win;
Lose = userData.lose; // Lose = userData.lose;
// 유저 정보를 PlayerPrefs에 저장 // 유저 정보를 PlayerPrefs에 저장
SaveUserInfoToPlayerPrefs(); SaveUserInfoToPlayerPrefs();
@ -58,11 +57,11 @@ public class UserManager : Singleton<UserManager>
id = UserId, id = UserId,
email = Email, email = Email,
nickname = Nickname, nickname = Nickname,
rating = Rating, // rating = Rating,
score = Score, // score = Score,
imageIndex = ImageIndex, imageIndex = ImageIndex,
win = Win, // win = Win,
lose = Lose // lose = Lose
}; };
string json = JsonUtility.ToJson(userInfo); string json = JsonUtility.ToJson(userInfo);