21 lines
608 B
JavaScript
21 lines
608 B
JavaScript
|
class SoyooLifecyle {
|
||
|
static Ready = 100 // 游戏初始化完成
|
||
|
static Start = 200 // 游戏正式开始
|
||
|
static Pause = 300 // 游戏暂停
|
||
|
static Resume = 400 // 游戏从暂停恢复
|
||
|
static Complete = 500 // 游戏结束, 全部完成
|
||
|
}
|
||
|
|
||
|
window.$soyooFacadeImpl = {
|
||
|
onLifecyleReport(lifecyle) {
|
||
|
switch(lifecyle) {
|
||
|
default:
|
||
|
console.log("[SoyooFacadeImpl] not handled: ", lifecyle)
|
||
|
}
|
||
|
},
|
||
|
|
||
|
onGameInstall() {
|
||
|
FbPlayableAd && FbPlayableAd.onCTAClick();
|
||
|
console.log("[SoyooFacadeImpl] onGameInstall")
|
||
|
}
|
||
|
}
|