Commit e39b6958 authored by 范雪寒's avatar 范雪寒

feat:

parent 5520086d
......@@ -215,7 +215,7 @@ cc.Class({
cc.tween(exitBtn)
.to(0.1, { scaleX: 0.4, scaleY: 0.6 })
.to(0.1, { scaleX: 0.6, scaleY: 0.4 })
.to(0.1, { scaleX: 1, scaleY: 1 })
.to(0.1, { scaleX: 0.5, scaleY: 0.5 })
.call(() => {
exitBtn.active = false;
cc.game.removePersistRootNode(this.node);
......@@ -460,14 +460,16 @@ cc.Class({
const mask = cc.find('middleLayer/mask');
cc.tween(mask)
.set({ active: true, opacity: 0 })
.to(1, { opacity: 255 })
.to(0.5, { opacity: 255 })
.start();
},
hideMask() {
const mask = cc.find('middleLayer/mask');
mask.stopAllActions();
cc.tween(mask)
.to(1, { opacity: 0 })
.set({ opacity: 255 })
.to(0.5, { opacity: 0 })
.set({ active: false })
.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