Move Object inverse of Mouse position

I’m trying to move and object on the oposite direction of my mouse on a 2D game.

But I’m having problems and its not moving to the right direction.

I checked my script and dont found the error.

I think is a logical problem

using UnityEngine;
using System.Collections;

public class MoveBall : MonoBehaviour 
{

	public Transform sprite;
	public Transform mousePos;
	public Vector3 heading;
	float distance;
	Vector3 direction;
	float dirX;
	float dirY;
	
	
	void Update()
	{
		
		heading = sprite.position - mousePos.position;
		distance = heading.magnitude;
		direction = heading/distance;
		heading.z =0;
		dirX = direction.x;
		dirY = direction.y;
		sprite.transform.Translate(new Vector3(dirX*Time.deltaTime, dirY*Time.deltaTime, 0));
		
	}
	
}

I tried this changes but dont worked

using UnityEngine;
using System.Collections;

public class MoveBall : MonoBehaviour 
{

	public Transform sprite;
	public Transform mousePos;
	public Vector3 heading;
	float distance;
	Vector3 direction;
	float dirX;
	float dirY;
	float mouseX;
	float mouseY;
	public Vector3 mousePosition;
	
	
	void Update()
	{
		mouseX = (Input.mousePosition.x);
		mouseY = (Input.mousePosition.y);
		mousePosition = Camera.main.ScreenToWorldPoint(new Vector3 (mouseX,mouseY,0));
		heading =  mousePosition - sprite.position;
		distance = heading.magnitude;
		direction = heading/distance;
		dirX = direction.x;
		dirY = direction.y;
		sprite.transform.Translate(new Vector3(dirX*Time.deltaTime, dirY*Time.deltaTime, 0));

		
	}
		
		

	
	
}

If you want something in the opposite position from your mouse, you’ll want the inverse of your mouse position relative to the screen dimensions. This can be accomplished by subtracting the mouse position from the screen dimensions.

// ...
Vector3 inverseMousePos = new Vector3(Screen.width - Input.mousePosition.x, Screen.height - Input.mousePosition.y, Input.mousePosition.z)
mousePosition = Camera.main.ScreenToWorldPoint(inverseMousePos);
// ...

This way, you’ll take the screen point opposite the current mouse position and transform it into some point in world space.