Commit 2c0d217e authored by 李维's avatar 李维

Test

parent bba94278
...@@ -603,8 +603,8 @@ cc.Class({ ...@@ -603,8 +603,8 @@ cc.Class({
for(let i=1; i<=5; i++) { for(let i=1; i<=5; i++) {
if(i==this._lastMainBg) { if(i==this._lastMainBg) {
bgNode.getChildByName(`bgMain (${i})`).active = true; bgNode.getChildByName(`bgMain (${i})`).active = true;
bgNode.getChildByName(`bgMain (${i})`).width = cc.winSize.width bgNode.getChildByName(`bgMain (${i})`).width = cc.winSize.width / letterNodeBase.scaleX
bgNode.getChildByName(`bgMain (${i})`).height = cc.winSize.height bgNode.getChildByName(`bgMain (${i})`).height = cc.winSize.height / letterNodeBase.scaleY
} else { } else {
bgNode.getChildByName(`bgMain (${i})`).active = false; bgNode.getChildByName(`bgMain (${i})`).active = false;
} }
......
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