So i’m trying to remake pong for practice and I want to delay the ball from moving when the game starts. I want to delay it by 3 seconds and this is what I have now (written in unity JavaScript)
var rb : Rigidbody2D;
var speed : float = 10;
function Start() {
rb.AddForce(new Vector3(Random.Range(-80,80)/10,Random.Range(-80,80)/10,0)*speed);
}