Commit 165364c7 authored by limingzhe's avatar limingzhe

fix: debug

parent 4661c057
......@@ -2406,8 +2406,14 @@ cc.Class({
// this.videoNode.active = false;
// this.muteVideoNode.active = true;
this.videoNode.x = -this.canvas.width;
// this.videoNode.x = -this.canvas.width;
const localPos = this.videoNode.parent.convertToNodeSpaceAR(cc.v2(-this.canvas.width, 0));
this.videoNode.x = localPos.x;
this.muteVideoNode.x = this.muteVideoNode.baseX;
// }, 1);
// this.videoNode.active = false;
......@@ -2421,7 +2427,11 @@ cc.Class({
// this.videoNode.active = true;
// this.muteVideoNode.active = false;
this.videoNode.x = this.videoNode.baseX;
this.muteVideoNode.x = -this.canvas.width;
// this.muteVideoNode.x = -this.canvas.width;
const localPos = this.muteVideoNode.parent.convertToNodeSpaceAR(cc.v2(-this.canvas.width, 0));
this.muteVideoNode.x = localPos.x;
// }, 1);
// this.videoNode.active = true;
......
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