Commit ba604662 authored by liujiangnan's avatar liujiangnan

feat: 进入画面

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