Commit 949c032a authored by liujiangnan's avatar liujiangnan

feat

parent a2204841
...@@ -53,16 +53,23 @@ export default class NewClass extends middleLayerBase { ...@@ -53,16 +53,23 @@ export default class NewClass extends middleLayerBase {
(<any>window).air.onCourseInScreen(() => { (<any>window).air.onCourseInScreen(() => {
console.log("***成功调用onCourseInScreen***"); console.log("***成功调用onCourseInScreen***");
(<any>window).air.onCourseInScreen = null; (<any>window).air.onCourseInScreen = null;
this.setVideoToBottom();
this.hideWaitingLetters(); this.hideWaitingLetters();
this.hideMask(); this.hideMask();
}); });
} else { } else {
this.setVideoToBottom();
this.hideWaitingLetters(); this.hideWaitingLetters();
this.hideMask(); this.hideMask();
} }
} }
} }
setVideoToBottom() {
const video = cc.find("Canvas").getComponentInChildren(cc.VideoPlayer);
video.stayOnBottom = true;
}
tipsTween = null; tipsTween = null;
async showTips(str: string) { async showTips(str: string) {
const tipsLayer = cc.find('middleLayer/tipsLayer'); const tipsLayer = cc.find('middleLayer/tipsLayer');
......
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