奔溃日志:
求大神指点,ts的点击事件会导致原生端触摸事件奔溃吗?该问题我在用android测试的时候从来没有遇到过,但是在google的crash日志中关联了很多雷同carsh。
游戏中只有一个层级注册事件
if(this.boxLayer){
this.boxLayer.on(Node.EventType.TOUCH_START, this.boxTouchLogic, this);
this.boxLayer.on(Node.EventType.TOUCH_END, this.boxTouchEndLogic, this);
}
注销事件
if(this.boxLayer){
this.boxLayer.off(Node.EventType.TOUCH_START, this.boxTouchLogic, this);
this.boxLayer.off(Node.EventType.TOUCH_END, this.boxTouchEndLogic, this);
}
想着按键这么常用的功能在一般情况下应该不会有问题,所以想看一下是不是在什么特殊的情况下会出现问题,去找cocos源码,在引擎源码中未找到GameInputProxy,然后一脸懵逼。求路径或者有遇到相似问题的朋友分享一下解决方案。