How to make my moving object bounce

I have a script for movement, which i copied from a tutorial - it works great for my project except that i need the projectile to change direction upon hitting another rigidbody; how can i add this?

the code:

using UnityEngine;

/// <summary>
/// Simply moves the current game object
/// </summary>
public class MoveScript : MonoBehaviour
{
	// 1 - Designer variables
	
	/// <summary>
	/// Object speed
	/// </summary>
	public Vector2 speed = new Vector2(10, 10);
	
	/// <summary>
	/// Moving direction
	/// </summary>
	public Vector2 direction = new Vector2(-1, 0);
	
	private Vector2 movement;
	
	void Update()
	{
		// 2 - Movement
		movement = new Vector2(
			speed.x * direction.x,
			speed.y * direction.y);
	}
	
	void FixedUpdate()
	{
		// Apply movement to the rigidbody
		rigidbody2D.velocity = movement;
	}
}

get the collision object, the colision vector, and use the Vector3.Reflect using incoming vector and the normal of the collision, this will be a 100% elastic collision, you could use a factor to make it bounce less

Conserve angular momentum before and after collision.BallBricker - The GamePlay - YouTube follow these videos for better understanding.