init
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
cc.Class({
|
||||
extends: cc.Component,
|
||||
properties: {},
|
||||
start: function () {
|
||||
window.tt || (this.node.active = false);
|
||||
if (window.tt) {
|
||||
var e = tt.getSystemInfoSync();
|
||||
console.log("当前平台:" + e.appName);
|
||||
if ("Douyin" == e.appName && window.GameConfig.showguanzhu) {
|
||||
this.node.active = true;
|
||||
} else {
|
||||
this.node.active = false;
|
||||
}
|
||||
}
|
||||
},
|
||||
onBtnclickEvent: function () {
|
||||
window.tt && tt.openAwemeUserProfile();
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user