Commit 949dfc40 authored by liujiangnan's avatar liujiangnan

feat: 缩放

parent e6f3b9d1
......@@ -74,7 +74,6 @@ 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);
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