drgame-cc 1.0.35 → 1.0.37
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/build-templates/web-mobile/jz-jdt-3.png +0 -0
- package/build-templates/web-mobile/jz-jdt-4.png +0 -0
- package/build-templates/web-mobile/logo.png +0 -0
- package/drscript/PlatformAdapter.ts +7 -1
- package/drscript/interface/ILobbyBridge.ts +5 -0
- package/package.json +1 -1
- package/build-templates/web-mobile/16+.png +0 -0
- package/build-templates/web-mobile/splash.png +0 -0
- package/build-templates/web-mobile/splash_en.png +0 -0
- package/build-templates/web-mobile/src/hls.min.js +0 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -9,7 +9,7 @@ import ToastManager from "./toast/ToastManager";
|
|
|
9
9
|
import { InternalUitl } from "./InternalUitl";
|
|
10
10
|
/** 平台适配器,名字有点长防止和Platform,Adapter冲突 */
|
|
11
11
|
export class PlatformAdapter {
|
|
12
|
-
private static readonly version = "1.0.
|
|
12
|
+
private static readonly version = "1.0.36";
|
|
13
13
|
private static readonly designWidth = 1920;
|
|
14
14
|
private static readonly designHeight = 1080;
|
|
15
15
|
/** 初始化
|
|
@@ -223,4 +223,10 @@ export class PlatformAdapter {
|
|
|
223
223
|
public static get isCocos() {
|
|
224
224
|
return window['cc'] != undefined;
|
|
225
225
|
}
|
|
226
|
+
|
|
227
|
+
/** 退出游戏 */
|
|
228
|
+
public static exitGame() {
|
|
229
|
+
let bridge: ILobbyBridge = cc.director.getScene().getComponentInChildren('LobbyBridge');
|
|
230
|
+
bridge && bridge.exitGame();
|
|
231
|
+
}
|
|
226
232
|
}
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|