|
|
@@ -61,7 +61,6 @@ export default class GuideWeak extends cc.Component {
|
|
|
private onTouchStart(touch: cc.Touch, event: cc.Event.EventTouch): boolean {
|
|
|
// cc.log("touch start");
|
|
|
//此处必须返回true(表示接触到了节点),否则TOUCH_MOVE,TOUCH_END,TOUCH_CANCEL不触发。
|
|
|
- event.bubbles = true;
|
|
|
const point_world_pos = touch.getLocation();
|
|
|
let localPoint = this.node.parent.convertToNodeSpaceAR(new cc.Vec2(point_world_pos.x, point_world_pos.y));
|
|
|
let result = this.pointInPoly(localPoint, this.node);
|