|
@@ -7,9 +7,7 @@ cc.Class({
|
|
},
|
|
},
|
|
|
|
|
|
onLoad() {
|
|
onLoad() {
|
|
- this.node.on(cc.Node.EventType.TOUCH_END, () => {
|
|
|
|
- // this.close();
|
|
|
|
- });
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
|
|
|
|
show(message) {
|
|
show(message) {
|
|
@@ -17,11 +15,11 @@ cc.Class({
|
|
this.label.string = message;
|
|
this.label.string = message;
|
|
this.node.active = true;
|
|
this.node.active = true;
|
|
this.node.y = - this.node.height;
|
|
this.node.y = - this.node.height;
|
|
- let anim = cc.spawn(cc.moveBy(0.3, 0, this.node.height), cc.fadeOut(0.3));
|
|
|
|
|
|
+ let anim = cc.spawn(cc.moveBy(0.3, 0, this.node.height), cc.fadeIn(0.3));
|
|
this.node.runAction(anim);
|
|
this.node.runAction(anim);
|
|
this.timer = setInterval(() => {
|
|
this.timer = setInterval(() => {
|
|
this.close();
|
|
this.close();
|
|
- }, 2000);
|
|
|
|
|
|
+ }, 1000);
|
|
},
|
|
},
|
|
|
|
|
|
// update (dt) {},
|
|
// update (dt) {},
|