Commit f8e2c066 authored by 范雪寒's avatar 范雪寒

fix: 去黑边

parent 22ce0a3b
This diff is collapsed.
...@@ -50,18 +50,6 @@ var game = cc.Class({ ...@@ -50,18 +50,6 @@ var game = cc.Class({
g.Light.inst.showLight(); g.Light.inst.showLight();
}, },
//检查当前缩放倍数
checkScale: function (num) {
var scale = 1;
if (num > 2 && num <= 4) {
scale = 0.74;
}
if (num > 4) {
scale = 0.65;
}
return scale;
},
//添加节点 //添加节点
addItem: function () { addItem: function () {
let itemArr = g.data_mgr.getSheepArr(); let itemArr = g.data_mgr.getSheepArr();
......
...@@ -248,13 +248,15 @@ export function initDataMgr_NGT_02() { ...@@ -248,13 +248,15 @@ export function initDataMgr_NGT_02() {
preload() { preload() {
cc.assetManager.loadAny(null, null, null, (err, data) => { cc.assetManager.loadAny(null, null, null, (err, data) => {
window.air.onCourseInScreen = (next) => { if (window && window["air"]) {
window["air"].onCourseInScreen = (next) => {
//结束回调 //结束回调
this.loadEnd(); this.loadEnd();
next(); next();
} }
if (window && window["air"]) {
window["air"].hideAirClassLoading(); window["air"].hideAirClassLoading();
} else {
this.loadEnd();
} }
cc.debug.setDisplayStats(false); cc.debug.setDisplayStats(false);
}); });
......
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