Commit 3eb1d7dc authored by 范雪寒's avatar 范雪寒
parents 5da57ac7 6479e441
......@@ -163,10 +163,10 @@ export function initAir(_this) {
_this.log(`===成功调用closeOsmo===`);
window.courseware.callOcMethod("closeOsmo", {});
},
openOsmoHandwriting() {
openOsmoHandwriting(threshold = 0.4) {
window.courseware.hasCalledOpenOsmoHandwriting = true;
_this.log(`===成功调用openOsmoHandwriting===`);
window.courseware.callOcMethod("openOsmoHandwriting", {});
window.courseware.callOcMethod("openOsmoHandwriting", {threshold});
},
closeOsmoHandwriting() {
window.courseware.hasCalledOpenOsmoHandwriting = false;
......
......@@ -220,6 +220,7 @@ cc.Class({
exitBtn.active = false;
cc.game.removePersistRootNode(this.node);
cc.director.getScene().destroy();
cc.audioEngine.stopAll();
window.courseware.freeAllOcMethod();
cc.director.loadScene("debug_shell", null, null, (err, scene) => {
});
......
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