51 lines
1.0 KiB
TypeScript
51 lines
1.0 KiB
TypeScript
|
|
/**
|
|
* 添加桌面
|
|
*/
|
|
|
|
import AdsApiMgr from "../../Tools/Sdk/ads/AdsApiMgr";
|
|
|
|
const {ccclass, property} = cc._decorator;
|
|
|
|
@ccclass
|
|
export default class addIconTips extends cc.Component {
|
|
|
|
// @property(cc.Sprite)
|
|
// kuang:cc.Sprite = null
|
|
|
|
// @property([cc.SpriteFrame])
|
|
// sp:cc.SpriteFrame[] = []
|
|
|
|
// @property(cc.Sprite)
|
|
// jiantou:cc.Sprite = null
|
|
// @property([cc.SpriteFrame])
|
|
// jiantousp:cc.SpriteFrame[] = []
|
|
|
|
|
|
// LIFE-CYCLE CALLBACKS:
|
|
|
|
onLoad () {
|
|
AdsApiMgr.Instance.bannerAds_Show()
|
|
AdsApiMgr.Instance.chaPingAds_Show()
|
|
|
|
// if(cc.sys.platform == cc.sys.BYTEDANCE_GAME){
|
|
// this.kuang.spriteFrame = this.sp[0]
|
|
// this.jiantou.spriteFrame = this.jiantousp[0]
|
|
// }else {
|
|
// this.kuang.spriteFrame = this.sp[1]
|
|
// this.jiantou.spriteFrame = this.jiantousp[1]
|
|
// }
|
|
}
|
|
|
|
start () {
|
|
|
|
}
|
|
|
|
close(){
|
|
AdsApiMgr.Instance.bannerAds_Hide()
|
|
this.node.destroy()
|
|
}
|
|
|
|
// update (dt) {}
|
|
}
|