Commit 8f011bfb authored by Chen Jiping's avatar Chen Jiping

feat:停止所有的播放

parent 9b3006aa
...@@ -86,6 +86,10 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -86,6 +86,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.initView(); this.initView();
} }
protected onDestroy(): void {
cc.Tween.stopAll();
}
_cantouch = null; _cantouch = null;
initData() { initData() {
// 所有全局变量 默认都是null // 所有全局变量 默认都是null
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment