Commit ee25c63e authored by Tt's avatar Tt

return

parent afb6d20c
This diff is collapsed.
......@@ -35,8 +35,16 @@ export default class SceneComponent extends MyCocosSceneComponent {
addPreloadAnima() {
}
onTouchReturn() {
const middleLayer = cc.find('middleLayer');
if (middleLayer) {
const middleLayerComponent = middleLayer.getComponent('middleLayer');
middleLayerComponent.return();
}
}
async onLoadEnd() {
pg.view.touchOn(pg.view.find(this, 'btn_return'), this.onTouchReturn, this);
// TODO 加载完成后的逻辑写在这里, 下面的代码仅供参考
this.initData();
this.initView();
......
{
"ver": "2.3.5",
"uuid": "408a09fa-d1dd-4209-a416-b4f3ae558354",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 50,
"height": 40,
"platformSettings": {},
"subMetas": {
"btn_return": {
"ver": "1.0.4",
"uuid": "b0cc58a4-3169-45c1-83d3-c60f8a47698b",
"rawTextureUuid": "408a09fa-d1dd-4209-a416-b4f3ae558354",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 50,
"height": 40,
"rawWidth": 50,
"rawHeight": 40,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
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