Commit ba604662 authored by liujiangnan's avatar liujiangnan

feat: 进入画面

parent 0ec91df8
......@@ -352,7 +352,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 6000,
"width": 4000,
"height": 1200
},
"_anchorPoint": {
......@@ -426,7 +426,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-2000,
-1000,
0,
0,
0,
......@@ -520,7 +520,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
1000,
0,
0,
0,
......@@ -589,7 +589,7 @@
"__id__": 12
}
],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 155
......@@ -9122,7 +9122,7 @@
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 6000,
"width": 4000,
"height": 1200
},
"_resize": 1,
......
......@@ -85,6 +85,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
bg_bg2.scale = scale;
const bg_bg3 = cc.find('Canvas/ScrollView/layout/bg_bg3');
bg_bg3.scale = scale;
bg_bg3.active = true;
const scrollView = cc.find('Canvas/ScrollView').getComponent(cc.ScrollView);
scrollView.scrollTo(cc.v2(0, 0),0);
......
......@@ -87,7 +87,7 @@ export class MyCocosSceneComponent extends cc.Component {
preload() {
const preloadArr = this._imageResList.concat(this._audioResList).concat(this._animaResList);
cc.assetManager.loadAny(preloadArr, null, null, (err, data) => {
cc.assetManager.loadAny(preloadArr, null, null, async (err, data) => {
if (window && window["air"]) {
// window["air"].onCourseInScreen = (next) => {
......@@ -95,10 +95,10 @@ export class MyCocosSceneComponent extends cc.Component {
// this.onLoadEnd();
// next();
// };
this.onLoadEnd();
await this.onLoadEnd();
window["air"].hideAirClassLoading();
} else {
this.onLoadEnd();
await this.onLoadEnd();
}
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