mirror of
https://gitee.com/ruanwujing/green-pack-cocos
synced 2024-12-24 10:48:38 +00:00
调节台球旋转
This commit is contained in:
parent
7ae9363d9a
commit
aa7a9f34be
@ -8,7 +8,7 @@ export class TestBilliardsParent extends Component {
|
||||
for (let i = 0; i < this.node.children.length; i++) {
|
||||
let ball:TestBilliards = this.node.children[i].getComponent(TestBilliards);
|
||||
|
||||
ball.scrollSpeed = (i + 1);
|
||||
ball.scrollSpeed = i % 4 + 1;
|
||||
|
||||
let ax = i % 4;
|
||||
let ay = Math.floor(i / 4);
|
||||
|
Loading…
Reference in New Issue
Block a user