Commit 0de9af9e authored by LMZ's avatar LMZ

fix: 销毁处理

parent 1299cce2
No preview for this file type
...@@ -14468,7 +14468,7 @@ ...@@ -14468,7 +14468,7 @@
"_id": "29zXboiXFBKoIV4PQ2liTe" "_id": "29zXboiXFBKoIV4PQ2liTe"
}, },
{ {
"__type__": "1e6c5bmzb5Cw7tGU+6pyb+T", "__type__": "066dcgoQgRIj4s23Otn6Pro",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
...@@ -14477,7 +14477,7 @@ ...@@ -14477,7 +14477,7 @@
"_enabled": true, "_enabled": true,
"baseWidth": 1280, "baseWidth": 1280,
"baseHeight": 720, "baseHeight": 720,
"_id": "133eQPaORJgKcDEEwExS7H" "_id": "ec/kPn9RpOyYrGMAUoZYXe"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html // - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
// import { getSprNode } from "./util"; // import { getSprNode } from "./util";
import { getSprNode, playAudioByUrl, getScaleRateBy2Node, localPosTolocalPos, randomSortByArr, loadDragonBones, playAudio, showTrebleFirework, delayCall, removeFromArr, showBtnAnima, asyncDelay, RandomInt, jellyShake} from "./util"; import { getSprNode, playAudioByUrl, getScaleRateBy2Node, localPosTolocalPos, randomSortByArr, loadDragonBones, playAudio, showTrebleFirework, delayCall, removeFromArr, showBtnAnima, asyncDelay, RandomInt, jellyShake} from "../script/util";
cc.Class({ cc.Class({
extends: cc.Component, extends: cc.Component,
...@@ -2803,6 +2803,9 @@ cc.Class({ ...@@ -2803,6 +2803,9 @@ cc.Class({
for (let i = 0; i < 3; i++) { for (let i = 0; i < 3; i++) {
this.showFirework(pos, parentNode, nodeList, w, h, n, timeRate); this.showFirework(pos, parentNode, nodeList, w, h, n, timeRate);
await asyncDelay(0.1); await asyncDelay(0.1);
if (this.isDestroy) {
return;
}
} }
}, },
...@@ -5234,4 +5237,13 @@ cc.Class({ ...@@ -5234,4 +5237,13 @@ cc.Class({
}, },
isDestroy: null,
onDestroy() {
this.isDestroy = true;
cc.Tween.stopAll();
}
}); });
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "1e6c56e6-cdbe-42c3-bb46-53eea9c9bf93", "uuid": "066dc828-4204-488f-8b36-dceb67e8fae8",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
...@@ -3,6 +3,6 @@ ...@@ -3,6 +3,6 @@
"packages": "packages", "packages": "packages",
"name": "play", "name": "play",
"id": "9af72fd2-44a6-4131-8ea3-3e1b3fa22231", "id": "9af72fd2-44a6-4131-8ea3-3e1b3fa22231",
"version": "2.4.5", "version": "2.4.4",
"isNew": false "isNew": false
} }
\ No newline at end of file
No preview for this file type
{"ios":{"sceneName":"ask_03","version":"a0c8e"},"android":{"sceneName":"ask_03","version":"a0c8e"}} {"ios":{"sceneName":"ask_03","version":"ee615"},"android":{"sceneName":"ask_03","version":"ee615"}}
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
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