Commit 70b8866d authored by liujiangnan's avatar liujiangnan

feat:

parent 5c29605e
{ {"ver":"1.1.2","uuid":"c35bb2f6-f24a-4850-ae44-643f2fdc7541","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}}
"ver": "1.1.2", \ No newline at end of file
"uuid": "c35bb2f6-f24a-4850-ae44-643f2fdc7541",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
...@@ -394,8 +394,9 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -394,8 +394,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
baseSpeaker.active = false; baseSpeaker.active = false;
this._status.tryAgainFlg = false; this._status.tryAgainFlg = false;
} else { } else {
this.playLocalAudio('try_again');
await this.showTryAgain(); await this.showTryAgain();
baseSpeaker.active = false;
this._status.tryAgainFlg = false;
} }
} }
...@@ -422,9 +423,14 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -422,9 +423,14 @@ export default class SceneComponent extends MyCocosSceneComponent {
tryAgain.active = true; tryAgain.active = true;
cc.tween(tryAgain) cc.tween(tryAgain)
.set({ opacity: 0, scale: 2 }) .set({ opacity: 0, scale: 2 })
.call(async () => {
await asyncDelay(0.5);
this.playLocalAudio('try_again');
})
.to(1, { opacity: 255, scale: 1 }, { easing: "quartIn" }) .to(1, { opacity: 255, scale: 1 }, { easing: "quartIn" })
.delay(1) .delay(1)
.call(() => { .call(() => {
tryAgain.active = false;
resolve(null); resolve(null);
}) })
.start(); .start();
......
This diff is collapsed.
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