Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function OnMouseDown () {
- Fball1x = ball1.transform.position.x;
- Fball1y = ball1.transform.position.y;
- ball1.transform.position.x=ball2.transform.position.x;
- ball1.transform.position.y=ball2.transform.position.y;
- ball2.transform.position.x=Fball1x;
- ball2.transform.position.y=Fball1y;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement