Commit 2f5ee806 authored by liujiaxin's avatar liujiaxin

feat: add native fn flag

parent a3f8b548
......@@ -361,6 +361,7 @@ cc.Class({
src: (ctx) => {
console.log('game begin');
if(window.courseware && window.courseware.openOsmoFingerRead) {
this.isOpenedOsmoFingerRead = true;
window.courseware.openOsmoFingerRead()
}
var dragonDisplay = this.logoCat.getComponent(dragonBones.ArmatureDisplay);
......@@ -404,7 +405,7 @@ cc.Class({
var dragonDisplay = this.logoCat.getComponent(dragonBones.ArmatureDisplay);
const state = dragonDisplay.playAnimation('end', 0);
if(window.courseware && window.courseware.closeOsmoFingerRead) {
this.isCloseOsmoFingerRead = true;
this.isOpenedOsmoFingerRead = false;
window.courseware.closeOsmoFingerRead()
}
playAudioByUrl(this.data.end_audio, () => {
......@@ -808,7 +809,7 @@ cc.Class({
this.gameMachineService.stopChild();
this.gameMachineService.stop();
if(window.courseware && window.courseware.closeOsmoFingerRead) {
if (this.isCloseOsmoFingerRead) {
if (this.isOpenedOsmoFingerRead) {
window.courseware.closeOsmoFingerRead()
}
}
......
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