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

update loop rotate

parent ec764073
......@@ -1858,8 +1858,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 400,
"height": 400
"width": 462.01,
"height": 540.78
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1962,8 +1962,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 400,
"height": 400
"width": 462.01,
"height": 540.78
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -2066,8 +2066,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 400,
"height": 400
"width": 462.01,
"height": 540.78
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -2170,8 +2170,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 400,
"height": 400
"width": 462.01,
"height": 540.78
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......
......@@ -18,7 +18,7 @@ export default class HuController extends cc.Component {
this.node.on(cc.Node.EventType.TOUCH_END, this.onTouchEnd, this)
this.node.on(cc.Node.EventType.TOUCH_MOVE, this.onTouchMove, this)
// this.spine.setCompleteListener((trackEntry) => this.setRotateAnim());
this.spine.setCompleteListener(() => this.setRotateAnim());
}
......@@ -28,7 +28,6 @@ export default class HuController extends cc.Component {
}
private onTouchEnd(): void {
// this.spine.setAnimation(1, "Rotate", false);
this.spine.timeScale = 0;
}
......@@ -40,7 +39,6 @@ export default class HuController extends cc.Component {
return;
}
console.log('distance', distance)
this._pointStart = newPoint;
this.spine.timeScale = distance > 0 ? -0.5 : 0.5;
}
......@@ -56,7 +54,6 @@ export default class HuController extends cc.Component {
private unPauseAnim(): void {
this.spine.timeScale = 0.2;
// this.node.scaleX *= -1;
}
private toggleAnim(): void {
......
......@@ -16,7 +16,6 @@ export default class StartScreen extends cc.Component {
protected onLoad(): void {
this.selectBtnNode.on('click', this.onSelectBtnClick, this);
this.contentNode.children.forEach((item: cc.Node, index: number) => {
item.on(cc.Node.EventType.TOUCH_START, () => this.onItemNodeClick(item, index), this);
......@@ -34,7 +33,6 @@ export default class StartScreen extends cc.Component {
private onSelectBtnClick() {
console.log('onSelectBtnClick', )
eventTarget.emit(SHOW_SELECT_POPUP);
}
......
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