fix(map): 修复任务界面动画启停逻辑异常
调整了MissionHomeComp和MissionComp中的地图动画启停代码,将多余空行移除并修正了调用时机,确保界面切换和销毁时动画状态正确。
This commit is contained in:
@@ -198,9 +198,11 @@ export class MissionComp extends CCComp {
|
||||
oops.message.dispatchEvent(GameEvent.MissionStart, {});
|
||||
this.mission_start();
|
||||
}, 0);
|
||||
smc.map.MapView.scene.mapLayer.stopAnimations();
|
||||
}
|
||||
|
||||
onDestroy(){
|
||||
smc.map.MapView.scene.mapLayer.playAnimations()
|
||||
super.onDestroy();
|
||||
if (this.start_btn && this.start_btn.isValid) {
|
||||
this.start_btn.off(NodeEventType.TOUCH_END, this.onStartFightBtnClick, this);
|
||||
|
||||
Reference in New Issue
Block a user