Commit 882b5fcd authored by limingzhe's avatar limingzhe

fix: debug 加背景 脚本名修改

parent 6ae92aae
This diff is collapsed.
......@@ -1056,6 +1056,7 @@ cc.Class({
timingEnd() {
this.recordLayer.active = false;
this.hideBgMask();
this.cleanTimer();
this.serverStopTest();
},
......@@ -1556,7 +1557,7 @@ cc.Class({
this.playerInfoData = playerData;
const script = cc.find('Canvas/OP10_LoadingLayer').getComponent('OP10_LoadingLayer');
const script = cc.find('Canvas/OP10_LoadingLayer').getComponent('op_spy_LoadingLayer');
script.setMaxPlayerNumber(this.maxPlayer);
script.onLoadFinished(() => {
if (!this.isOffLine) {
......@@ -1744,6 +1745,8 @@ cc.Class({
bg.scale = this.canvas.height / bg.height;
this.bg = bg;
this.bgMask = cc.find("Canvas/bgMask");
bg.on('touchstart', () => {
if (!this.isShowSearchIcon || !this.curData) {
return;
......@@ -1959,9 +1962,10 @@ cc.Class({
playStartAnim() {
// todo
const anim = cc.find("Canvas/bg/startAnimNode/startAnim");
const anim = cc.find("Canvas/startAnimNode/startAnim");
anim.parent.active = true;
playDragonBoneAnimation(anim, 'normal', -1);
this.showBgMask();
let tipNameUrl;
if (this.isPlayer1) {
......@@ -1979,6 +1983,7 @@ cc.Class({
this.showShake();
}
anim.parent.active = false;
this.hideBgMask();
});
......@@ -2029,6 +2034,15 @@ cc.Class({
this.recordLayer.active = true;
this.startRecord();
this.showBgMask();
},
showBgMask() {
this.bgMask.active = true;
},
hideBgMask() {
this.bgMask.active = false;
},
startRecord() {
......
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