OnCollisionEnter error

I don’t know how to fix this error, it says: Identifier expected.
And the other one says: Syntax error, ‘,’ expected
The code is this one:
{
int speedX;

int speedY;

float generalSpeed;

public Text scoreText;

int player1Score;

int player2Score;

public Text winner;

void Start()
{
MoveBall();
}
void Update()
{
scoreText.text = player1Score.ToString() + " - " + player2Score.ToString();
}

void ResetBall()
{
transform.localPosition = new Vector3 (0, 0, 0);
GetComponent().velocity = Vector3.zero;
}

void MoveBall()
{
generalSpeed = Random.Range(5, 10);

speedX = Random.Range(0, 2);

if (speedX == 0)
{
speedX = 1;
}
else
{
speedX = -1;
}

speedY = Random.Range(0, 2);

if (speedY == 0)
{
speedY = 1;
}
else
{
speedY = -1;
}

GetComponent().velocity = new Vector3(generalSpeed * speedX, generalSpeed * speedY, 0);
}

void OnCollisionEnter(Collision object)
{
if (object.collider.tag == “player1goal”)
{
player1Score++;
ResetBall();
Invoke(“MoveBall”, 2);
}

if (object.collider.tag == “player2goal”)
{
player2Score++;
ResetBall();
Invoke(“MoveBall”, 2);
}
}
}

Use code tags
Copy and paste your error, it contains all the info you need.
Paste your entire script so line numbers match up with the error codes.

The error is in the line of the void OnCollisionEnter, next to the word Collision

Choose a different name for the parameter. ‘object’ is a reserved keyword, more specifically an alias for the type System.Object and thus it cannot be used that way. You could prefix it with @, but I’d simply choose a different name. For example collision, col, other, obj, … whatever you like.

Thank you, I will try later