This commit is contained in:
2026-07-11 14:19:06 +08:00
parent 43065af74f
commit 9e0d1f04ba
4 changed files with 29 additions and 16 deletions
@@ -263,7 +263,8 @@ public class GameMainPanel_FishBase : GameMainPanel_Base
}
private void RefreshGGKCount()
{
var props = GameManager.Instance.user?.props;
var user = GameManager.Instance.user;
var props = user?.props;
int count = 0;
if (props != null)
{
@@ -278,6 +279,14 @@ public class GameMainPanel_FishBase : GameMainPanel_Base
}
if (tmp_GGKCount != null)
tmp_GGKCount.text = count.ToString();
// 同步更新游戏内金币显示(刮刮卡领奖、邮件领取等都会触发)
if (currSitData != null && user?.assets != null)
{
currSitData.goldNum = user.assets.gold;
if (currSitData.tMP_GoldNum != null)
currSitData.tMP_GoldNum.text = user.assets.gold.ToString();
}
}
protected override void OnHide()
{