Commit 5e691335 authored by liujiangnan's avatar liujiangnan

debug

parent 3ce83ba0
...@@ -176,14 +176,11 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -176,14 +176,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
if (p.x == -1 || p.y == -1) { if (p.x == -1 || p.y == -1) {
return; return;
} }
cc.find(`middleLayer/debug`).x = 100; if (checkInRegion(p)) {
cc.find(`middleLayer/debug`).getComponent(cc.Label).string = `debug: ${Math.floor(p.x * 100)/100} , ${Math.floor(p.y * 100)/100}`; // 检测成功
cc.find(`middleLayer/debug`).getComponent(cc.Label).fontSize = 100; window["courseware"].closeOsmoFingerRead();
// if (checkInRegion(p)) { resolve();
// // 检测成功 }
// window["courseware"].closeOsmoFingerRead();
// resolve();
// }
}; };
window["courseware"].openOsmoFingerRead({ window["courseware"].openOsmoFingerRead({
"page": false, "page": 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