Commit 6139c64a authored by 范雪寒's avatar 范雪寒

feat: 适配

parent 6e8deec1
import { initAir } from "./air";
import { initAir } from './air';
cc.Class({
extends: cc.Component,
properties: {
......@@ -73,7 +74,7 @@ cc.Class({
this.preloadCount = 0;
this.loadedCount = 0;
const ui = cc.find('middleLayer/ui');
ui.scale = Math.min(1, cc.view.getFrameSize().width/ui.width, cc.view.getFrameSize().height/ui.height);
ui.scale = Math.min(cc.view.getFrameSize().width/ui.width, cc.view.getFrameSize().height/ui.height);
initAir(this);
// this.preloadAll();
},
......
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