14 lines
280 B
JavaScript
14 lines
280 B
JavaScript
cc.Class({
|
|
extends: cc.Component,
|
|
properties: {},
|
|
start: function () {
|
|
var e = this;
|
|
window.tt || (this.node.active = false);
|
|
window.KSshareCall = function (o) {
|
|
e.showShare(o);
|
|
};
|
|
},
|
|
showShare: function (e) {
|
|
this.node.active = 1 != e;
|
|
}
|
|
}); |