修复BUG
This commit is contained in:
parent
ad85327fe9
commit
c557f154aa
|
|
@ -1,13 +0,0 @@
|
|||
{
|
||||
"ver": "1.1.3",
|
||||
"uuid": "e3fb03e9-da54-4ce9-ab3d-8fe90de464ad",
|
||||
"importer": "folder",
|
||||
"isBundle": false,
|
||||
"bundleName": "",
|
||||
"priority": 1,
|
||||
"compressionType": {},
|
||||
"optimizeHotUpdate": {},
|
||||
"inlineSpriteFrames": {},
|
||||
"isRemoteBundle": {},
|
||||
"subMetas": {}
|
||||
}
|
||||
|
|
@ -1606,6 +1606,7 @@ export default class MapConroler extends cc.Component {
|
|||
this.revolvingWallArray[startPos][0].getChildByName("wall").getComponent("Wall").revolvingColor = 0;
|
||||
let sp = cc.instantiate(this.wallRevolvingPrefab);
|
||||
sp.parent = this.node;
|
||||
sp.color = cc.Color.BLACK;
|
||||
sp.zIndex = 999;
|
||||
sp.angle = startAngle;
|
||||
sp.width = startRotate.width;
|
||||
|
|
@ -1613,7 +1614,7 @@ export default class MapConroler extends cc.Component {
|
|||
sp.x = startPosition.x;
|
||||
sp.y = startPosition.y;
|
||||
if (this.revolving_state == 2) sp.getChildByName("arror").scaleX = 1;
|
||||
|
||||
wall[0].getChildByName("wall").getComponent("Wall").changeRevolvingWallColor(color);
|
||||
cc.tween(sp)
|
||||
.to(0.3, {
|
||||
x: endPosition.x, y: endPosition.y, width: endRotate.width, height: endRotate.height, scaleX: 1.1, scaleY: 1.1, angle: endAngle
|
||||
|
|
@ -1621,7 +1622,6 @@ export default class MapConroler extends cc.Component {
|
|||
.to(0.1, { scaleX: 0.9, scaleY: 0.9 })
|
||||
.to(0.1, { scaleX: 1, scaleY: 1 })
|
||||
.call(() => {
|
||||
wall[0].getChildByName("wall").getComponent("Wall").changeRevolvingWallColor(color);
|
||||
sp.destroy();
|
||||
})
|
||||
.start();
|
||||
|
|
@ -3920,10 +3920,17 @@ export default class MapConroler extends cc.Component {
|
|||
this.lastBlockClickTime = Date.now();
|
||||
this.noBlockClickDuration = 0;
|
||||
|
||||
let rippleShrink = this.node.parent.getChildByName("Bottom").getChildByName("rippleShrink").getComponent('RippleShrink');
|
||||
if (rippleShrink && rippleShrink.stopRipple) {
|
||||
rippleShrink.stopRipple();
|
||||
if (this.node) {
|
||||
if (this.node.parent) {
|
||||
if (this.node.parent.getChildByName("Bottom")) {
|
||||
let rippleShrink = this.node.parent.getChildByName("Bottom").getChildByName("rippleShrink").getComponent('RippleShrink');
|
||||
if (rippleShrink && rippleShrink.stopRipple) {
|
||||
rippleShrink.stopRipple();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
//使用时间道具
|
||||
useTimeProp() {
|
||||
|
|
|
|||
|
|
@ -951,6 +951,7 @@ export default class Wall extends cc.Component {
|
|||
// - 逆时针带色门(special==11)
|
||||
// ============================================
|
||||
changeRevolvingWallColor(color) {
|
||||
// console.log("____________旋转门颜色改变:", color);
|
||||
// 如果有带色旋转门节点
|
||||
if (this.revolvingColorNode) {
|
||||
// 如果传了颜色参数,更新旋转门颜色
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user