Commit 43fbf6eb authored by liujiangnan's avatar liujiangnan

feat: 横竖屏逻辑

parent e27629d0
...@@ -167,11 +167,6 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -167,11 +167,6 @@ export abstract class middleLayerBase extends cc.Component {
} }
async loadBundle(sceneName, version, bondleUrl, callback = null) { async loadBundle(sceneName, version, bondleUrl, callback = null) {
if (this.oldSceneName) {
await this.checkRotateScreen(this.oldSceneName, sceneName);
}
this.assetList = []; this.assetList = [];
this.textureList = []; this.textureList = [];
this.assetObj = {}; this.assetObj = {};
...@@ -235,8 +230,8 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -235,8 +230,8 @@ export abstract class middleLayerBase extends cc.Component {
} }
checkRotateScreen(oldSceneName: string, newSceneName: string) { 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 = ["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 = [];
if (sceneNameList.includes(oldSceneName) || sceneNameList.includes(newSceneName)) { if (sceneNameList.includes(oldSceneName) || sceneNameList.includes(newSceneName)) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
if (sceneNameList.includes(newSceneName)) { 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