|
|
@@ -107,6 +107,15 @@ export default class Guide extends cc.Component {
|
|
|
x = pos.x;
|
|
|
y = pos.y;
|
|
|
|
|
|
+ //lastStruggle
|
|
|
+ if (this.crtGuide && this.crtGuide.id == 2 && this.crtStep == 1) {
|
|
|
+ w = this.targetNode.parent.width;
|
|
|
+ h = this.targetNode.parent.height;
|
|
|
+ let pos1 = mk.game.getWorldPos(this.targetNode.parent);
|
|
|
+ x = pos1.x;
|
|
|
+ y = pos1.y - h / 2;
|
|
|
+ }
|
|
|
+
|
|
|
//穿透点击目标节点时增加一个事件触发下一步,触发后移除
|
|
|
this.node_click.width = this.node_click.height = 0;
|
|
|
let eventHandler = new cc.Component.EventHandler();
|
|
|
@@ -231,8 +240,6 @@ export default class Guide extends cc.Component {
|
|
|
this.node.destroy();
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
///////////////// 自定义触摸监听 /////////////////
|
|
|
private _eventManager = cc["internal"]["eventManager"];
|
|
|
private _touchListener: any;
|