diff --git a/Assets/Script/Main/UserManager.cs b/Assets/Script/Main/UserManager.cs index 793bdc5..738aa56 100644 --- a/Assets/Script/Main/UserManager.cs +++ b/Assets/Script/Main/UserManager.cs @@ -204,7 +204,6 @@ public class UserManager : Singleton Score = scoreInfoResult.score; Win = scoreInfoResult.win; Lose = scoreInfoResult.lose; - //TODO: user매니저에서 바로 프리팹에 업데이트 해도 될까요? UpdateUserScoreInfoToPlayerPrefs(); } diff --git a/Assets/Script/UI/PanelController/RatingPanelController.cs b/Assets/Script/UI/PanelController/RatingPanelController.cs index cf6f93a..ad41db2 100644 --- a/Assets/Script/UI/PanelController/RatingPanelController.cs +++ b/Assets/Script/UI/PanelController/RatingPanelController.cs @@ -70,14 +70,11 @@ public class RatingPanelController : PanelController { GameManager.Instance.panelManager.OpenRatingEffectPanel(-1); } - }, () => { }); break; } } - - /// /// 텍스트 초기화, 승급포인트 계산 /// @@ -106,9 +103,6 @@ public class RatingPanelController : PanelController tenPointsIndicatorGameObject.SetActive(true); _ratingPointsController = tenPointsIndicatorGameObject.GetComponent(); } - - string win = _gameResult == Enums.GameResult.Win ? "승리" : "패배"; - string get = _gameResult == Enums.GameResult.Win ? "얻었습니다." : "잃었습니다."; // 게임 전 스코어로 초기화 NetworkManager.Instance.GetInfo((userInfo) => @@ -155,6 +149,9 @@ public class RatingPanelController : PanelController }, () => { }); + string win = _gameResult == Enums.GameResult.Win ? "승리" : "패배"; + string get = _gameResult == Enums.GameResult.Win ? "얻었습니다." : "잃었습니다."; + if(_gameResult == Enums.GameResult.Draw) { getPointsText.text = "무승부입니다.";