|
|
@@ -98,13 +98,19 @@ namespace WildAttack
|
|
|
text_currScoreTitle.text = StringModule.GetInstance().GetData("score") + ":";
|
|
|
text_currScore.text = GameMananger.GetInstance().TotalScore.ToString();
|
|
|
|
|
|
- if (GameMananger.GetInstance().TotalScore > LoginMgr.myUserInfo.wildAttackRecord)
|
|
|
+ float recordScore = 0;
|
|
|
+ if (LoginMgr.myUserInfo.timeLimitGameScores.ContainsKey("WildAttack"))
|
|
|
{
|
|
|
- LoginMgr.myUserInfo.wildAttackRecord = GameMananger.GetInstance().TotalScore;
|
|
|
+ recordScore = LoginMgr.myUserInfo.timeLimitGameScores["WildAttack"];
|
|
|
+ }
|
|
|
+ if (GameMananger.GetInstance().TotalScore > recordScore)
|
|
|
+ {
|
|
|
+ recordScore = GameMananger.GetInstance().TotalScore;
|
|
|
+ LoginMgr.myUserInfo.timeLimitGameScores["WildAttack"] = recordScore;
|
|
|
LoginMgr.myUserInfo.Save();
|
|
|
}
|
|
|
text_highScoreTitle.text = StringModule.GetInstance().GetData("highScore") + ":";
|
|
|
- text_highScore.text = LoginMgr.myUserInfo.wildAttackRecord.ToString();
|
|
|
+ text_highScore.text = recordScore.ToString();
|
|
|
|
|
|
}
|
|
|
#endregion
|