Commit 43fbf6eb authored by liujiangnan's avatar liujiangnan

feat: 横竖屏逻辑

parent e27629d0
......@@ -167,11 +167,6 @@ export abstract class middleLayerBase extends cc.Component {
}
async loadBundle(sceneName, version, bondleUrl, callback = null) {
if (this.oldSceneName) {
await this.checkRotateScreen(this.oldSceneName, sceneName);
}
this.assetList = [];
this.textureList = [];
this.assetObj = {};
......@@ -235,8 +230,8 @@ export abstract class middleLayerBase extends cc.Component {
}
checkRotateScreen(oldSceneName: string, newSceneName: string) {
// const sceneNameList = ["cc_mz_link_write_03", "NJ_game_select", "OP11", "OP12", "cc_mz_link_write_01", "cc_mz_link_write_02", "OP_18"];
const sceneNameList = [];
const sceneNameList = ["cc_mz_link_write_03", "NJ_game_select", "OP11", "OP12", "cc_mz_link_write_01", "cc_mz_link_write_02", "OP_18"];
// const sceneNameList = [];
if (sceneNameList.includes(oldSceneName) || sceneNameList.includes(newSceneName)) {
return new Promise((resolve, reject) => {
if (sceneNameList.includes(newSceneName)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment