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

fix auto rotate hu

parent 7b213904
...@@ -51,7 +51,6 @@ export default class FragmentController extends cc.Component { ...@@ -51,7 +51,6 @@ export default class FragmentController extends cc.Component {
const pos = this.node.position; const pos = this.node.position;
this.node.setSiblingIndex(-1); this.node.setSiblingIndex(-1);
eventTarget.emit(CHECK_FRAGMENT, this.node.name); eventTarget.emit(CHECK_FRAGMENT, this.node.name);
console.log('CHECK_FRAGMENT', CHECK_FRAGMENT)
cc.tween(this.node) cc.tween(this.node)
.delay(0.5) .delay(0.5)
......
...@@ -38,6 +38,7 @@ export default class HuController extends cc.Component { ...@@ -38,6 +38,7 @@ export default class HuController extends cc.Component {
} }
this.initBottle(); this.initBottle();
this._spine.timeScale = 0;
} }
...@@ -79,9 +80,7 @@ export default class HuController extends cc.Component { ...@@ -79,9 +80,7 @@ export default class HuController extends cc.Component {
private initBottle() { private initBottle() {
this._spine.setAnimation(1, "Rotate", false); this._spine.setAnimation(1, "Rotate", false);
// this._spine.timeScale = this._pointStart ? 0 : 1.3;
this._track = this._spine.getState().tracks[1]; this._track = this._spine.getState().tracks[1];
// this._spine.timeScale = 0;
} }
private onTouchStart(event: cc.Event.EventTouch): void { private onTouchStart(event: cc.Event.EventTouch): void {
......
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