drgame-cc 1.0.43 → 1.0.44
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.
- package/README.md +0 -4
- package/drscript/HelperWin.ts +1 -2
- package/drscript/PlatformAdapter.ts +5 -3
- package/package.json +1 -1
package/README.md
CHANGED
package/drscript/HelperWin.ts
CHANGED
|
@@ -7,8 +7,7 @@ const { ccclass, property } = cc._decorator;
|
|
|
7
7
|
|
|
8
8
|
@ccclass
|
|
9
9
|
export default class HelperWin extends cc.Component {
|
|
10
|
-
|
|
11
|
-
spine: sp.Skeleton = null;
|
|
10
|
+
private spine: sp.Skeleton = null;
|
|
12
11
|
|
|
13
12
|
private nativeBackHandler: () => boolean = null;
|
|
14
13
|
|
|
@@ -262,9 +262,11 @@ export class PlatformAdapter {
|
|
|
262
262
|
this.webBridge.callHandler("router/navigateBack", {}, (a) => { cc.log(a); });
|
|
263
263
|
return;
|
|
264
264
|
}
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
265
|
+
if (AdSdk.exitGame) AdSdk.exitGame();
|
|
266
|
+
cc.game.end();
|
|
267
|
+
// var GRoot = window['GRoot'];
|
|
268
|
+
// let bridge: ILobbyBridge = GRoot && GRoot.inst.node.getComponentInChildren('LobbyBridge');
|
|
269
|
+
// bridge && bridge.exitGame();
|
|
268
270
|
}
|
|
269
271
|
|
|
270
272
|
public static async showHelper(url: string, cb: () => void) {
|