init
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
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);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user