mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交
This commit is contained in:
@@ -10,10 +10,15 @@ export default class GOnHookData extends BaseData{
|
||||
info:ModeOnHookOV;
|
||||
|
||||
async onInit() {
|
||||
this.info = await GAPI.GOnHookInfo();
|
||||
await this.onUpdateInfo();
|
||||
console.log("GOnHookData Info",this.info);
|
||||
}
|
||||
|
||||
//刷新数据
|
||||
async onUpdateInfo(){
|
||||
this.info = await GAPI.GOnHookInfo();
|
||||
}
|
||||
|
||||
//切换地图
|
||||
async setMap(mapId:number){
|
||||
|
||||
@@ -22,5 +27,11 @@ export default class GOnHookData extends BaseData{
|
||||
|
||||
}
|
||||
|
||||
//下一关
|
||||
async onNextLevel(){
|
||||
await GAPI.GOnHookNextLevel();
|
||||
await this.onUpdateInfo();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user