|
|
|
|
|
|
var flip = Random.Range(0, 2); |
|
|
|
if (flip == 0) |
|
|
|
{ |
|
|
|
ball.transform.position = new Vector3(-ballOut, 12f, 0f) + transform.position; |
|
|
|
ball.transform.position = new Vector3(-ballOut, 1f, 0f) + transform.position; |
|
|
|
ball.transform.position = new Vector3(ballOut, 12f, 0f) + transform.position; |
|
|
|
ball.transform.position = new Vector3(ballOut, 1f, 0f) + transform.position; |
|
|
|
m_BallRb.velocity = new Vector3(0f, 0f, 0f); |
|
|
|
m_BallRb.velocity = new Vector3(0f, 20f, 0f); |
|
|
|
ball.transform.localScale = new Vector3(.5f, .5f, .5f); |
|
|
|
m_BallScript.ResetPoint(); |
|
|
|
} |
|
|
|