第二节 GooglePlay、iOS第三方接口
一、广告条:
游戏顶部广告条的显示与隐藏:this.hs_gameEngine.invokeThirdpartyInterface("Ad_bannerVisible", [true/false]);
二、排行榜:
提交分数到排行榜:this.hs_gameEngine.invokeThirdpartyInterface("GameService_submitScoreLeaderboards", [leaderboard_id, score]);
显示排行榜:this.hs_gameEngine.invokeThirdpartyInterface("GameService_displayingLeaderboards", [leaderboard_id]);
三、成就:
解锁成就:this.hs_gameEngine.invokeThirdpartyInterface("GameService_unlockAchievements", [achievement_id]);
成就加点:this.hs_gameEngine.invokeThirdpartyInterface("GameService_incrementAchievements", [achievement_id, numSteps]);
显示成就:this.hs_gameEngine.invokeThirdpartyInterface("GameService_displayingAchievements", []);
回到顶部
返回目录