chore(VictoryComp): add cloud data update on battle end

Add 3-second debounced cloud data sync after each battle finishes
This commit is contained in:
pan
2026-08-07 11:01:08 +08:00
parent ac2de96bd0
commit 542c746847

View File

@@ -128,6 +128,9 @@ export class VictoryComp extends CCComp {
// 计算总分并写入历史纪录
this.calculateTotalScore();
// 每次战斗结束都标记数据脏并触发云端同步(防抖 3 秒后自动上传)
smc.updateCloudData();
// 播放结算动画
this.playSettleAnimation();