|
@@ -357,7 +357,7 @@ export class car extends Component {
|
|
|
}
|
|
|
|
|
|
if(x<=left){
|
|
|
- x = this.node.position.x
|
|
|
+ x = left+size.width*0.5
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -368,7 +368,7 @@ export class car extends Component {
|
|
|
x = right_x-5
|
|
|
}
|
|
|
if(x>=right){
|
|
|
- x = this.node.position.x
|
|
|
+ x = right-size.width*0.5
|
|
|
}
|
|
|
}
|
|
|
|