fix: 修正拼写错误并添加升级动画播放逻辑
- 将 `palayBuff` 方法名更正为 `playBuff` - 在英雄升级时调用 `playAllTime` 方法播放"plus"动画 - 确保动画播放方法在参数为空时安全返回
This commit is contained in:
@@ -771,7 +771,7 @@ export class MissionCardComp extends CCComp {
|
||||
const target = candidates[Math.floor(Math.random() * candidates.length)];
|
||||
this.applyHeroLevel(target.model, toLv);
|
||||
if (target.view) {
|
||||
target.view.palayBuff("buff_lvup");
|
||||
target.view.playBuff("buff_lvup");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user