drgame-cc 1.0.39 → 1.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -267,11 +267,15 @@ export class PlatformAdapter {
267
267
  bridge && bridge.exitGame();
268
268
  }
269
269
 
270
+ /** 显示帮助界面
271
+ * @param url 帮助界面spine动画资源路径, 相对于resources/spine/目录
272
+ * @param cb 关闭帮助界面回调
273
+ */
270
274
  public static async showHelper(url: string, cb: () => void) {
271
275
  var key = `${this._zhName}-isFirst`;
272
276
  var isFirst = cc.sys.localStorage.getItem(key);
273
277
  if (!isFirst) {
274
- cc.sys.localStorage.setItem(key, false);
278
+ cc.sys.localStorage.setItem(key, true);
275
279
  let helperPfb = await Loader.loadRes('drres/prefab/HelperWin', cc.Prefab);
276
280
  let helperWin = cc.instantiate(helperPfb);
277
281
  helperWin.parent = cc.director.getScene();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drgame-cc",
3
- "version": "1.0.39",
3
+ "version": "1.0.41",
4
4
  "description": "道然游戏适配包",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",