hello I am making a game in which obstacles toward you and you have to dodge them, so i want the obstacles to accelerate overtime please help
// Update is called once per frame
void Update()
{
rigidbody.AddForce(0, 0, -5000 * Time.deltaTime);
}
}