42 lines
681 B
TypeScript
42 lines
681 B
TypeScript
/**
|
|
* 挑战成功
|
|
*/
|
|
|
|
import AdsApiMgr from "../../Tools/Sdk/ads/AdsApiMgr";
|
|
|
|
|
|
const {ccclass, property} = cc._decorator;
|
|
|
|
@ccclass
|
|
export default class ChallengeSuccessSc extends cc.Component {
|
|
|
|
@property(cc.Label)
|
|
timestr:cc.Label = null
|
|
|
|
|
|
onLoad () {}
|
|
|
|
start () {
|
|
|
|
}
|
|
|
|
showPanel(timenum){
|
|
this.timestr.string = '' + timenum
|
|
}
|
|
|
|
/**
|
|
* 按钮点击
|
|
* @param t
|
|
* @param e
|
|
*/
|
|
btnClickCallBack(t, e){
|
|
if(e == 'back'){
|
|
cc.director.loadScene('StartScene')
|
|
}else if(e == 'share'){
|
|
AdsApiMgr.Instance.recording_Video_Share(()=>{}, ()=>{})
|
|
}
|
|
}
|
|
|
|
// update (dt) {}
|
|
}
|