25 lines
528 B
JavaScript
25 lines
528 B
JavaScript
cc.Class({
|
|
extends: cc.Component,
|
|
properties: {
|
|
showNode: cc.Node
|
|
},
|
|
start: function () {
|
|
cc.global.guochang = this;
|
|
},
|
|
showZhuanchang: function (e) {
|
|
var o = this;
|
|
this.node.active = true;
|
|
this.showNode.active = true;
|
|
this.getComponent(cc.Animation).play();
|
|
setTimeout(function () {
|
|
if (e) {
|
|
e();
|
|
e = null;
|
|
}
|
|
cc.global.Source.onPlayGameEffect("zhuanchang");
|
|
}, 450);
|
|
setTimeout(function () {
|
|
o.showNode.active = false;
|
|
}, 1e3);
|
|
}
|
|
}); |