Commit 16d143bd authored by 范雪寒's avatar 范雪寒

fix:

parent e39b6958
...@@ -458,8 +458,9 @@ cc.Class({ ...@@ -458,8 +458,9 @@ cc.Class({
showMask() { showMask() {
const mask = cc.find('middleLayer/mask'); const mask = cc.find('middleLayer/mask');
mask.active = true;
cc.tween(mask) cc.tween(mask)
.set({ active: true, opacity: 0 }) .set({ opacity: 0 })
.to(0.5, { opacity: 255 }) .to(0.5, { opacity: 255 })
.start(); .start();
}, },
...@@ -470,7 +471,9 @@ cc.Class({ ...@@ -470,7 +471,9 @@ cc.Class({
cc.tween(mask) cc.tween(mask)
.set({ opacity: 255 }) .set({ opacity: 255 })
.to(0.5, { opacity: 0 }) .to(0.5, { opacity: 0 })
.set({ active: false }) .call(() => {
mask.active = false;
})
.start(); .start();
}, },
......
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