Commit ae8bab5a authored by Vũ Gia Vương's avatar Vũ Gia Vương

fix block input event

parent 7273b42a
This diff is collapsed.
...@@ -184,6 +184,7 @@ export default class BreakingJarController extends cc.Component { ...@@ -184,6 +184,7 @@ export default class BreakingJarController extends cc.Component {
} }
private onTouchStart(event: cc.Event.EventTouch) { private onTouchStart(event: cc.Event.EventTouch) {
console.log('onTouchStart', 1)
eventTarget.emit(STOP_GUILD_TAP); eventTarget.emit(STOP_GUILD_TAP);
const pos = event.getLocation(); const pos = event.getLocation();
const nodePos = this.node.convertToNodeSpaceAR(pos); const nodePos = this.node.convertToNodeSpaceAR(pos);
......
...@@ -5,7 +5,6 @@ const { ccclass, property } = cc._decorator; ...@@ -5,7 +5,6 @@ const { ccclass, property } = cc._decorator;
@ccclass @ccclass
export default class HuController extends cc.Component { export default class HuController extends cc.Component {
private _spine: sp.Skeleton = null;
private _x: number = 0; private _x: number = 0;
private _y: number = 0; private _y: number = 0;
private _z: number = 0; private _z: number = 0;
...@@ -14,7 +13,6 @@ export default class HuController extends cc.Component { ...@@ -14,7 +13,6 @@ export default class HuController extends cc.Component {
private _debug: cc.Label = null; private _debug: cc.Label = null;
protected onLoad(): void { protected onLoad(): void {
this._spine = this.node.getComponent(sp.Skeleton);
this._debug = this.node.getComponentInChildren(cc.Label); this._debug = this.node.getComponentInChildren(cc.Label);
if (cc.sys.os === cc.sys.OS_IOS) { if (cc.sys.os === cc.sys.OS_IOS) {
...@@ -23,8 +21,6 @@ export default class HuController extends cc.Component { ...@@ -23,8 +21,6 @@ export default class HuController extends cc.Component {
else { else {
this.scheduleOnce(this.setDeviceMotion, 2); this.scheduleOnce(this.setDeviceMotion, 2);
} }
this._spine.timeScale = 0;
} }
private setDeviceMotionIOS() { private setDeviceMotionIOS() {
......
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