Whats wrong with my unity pong script

im trying to re make pong and i made this script to set the player score but it keeps saying theres an error heres my script please help

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GameManager : MonoBehaviour
{
[Header(“Ball”)]
public GameObject ball;

[Header(“Player 1”)]
public GameObject Player1Paddle;
public GameObject Player1Goal;

[Header(“Player 2”)]
public GameObject Player2Paddle;
public GameObject Player2Goal;

[Header(“Score UI”)]
public GameObject Player1Text;
public GameObject Player2Text;

private int Player1Score;
private int Player2Score;

public void Player1Scored()
{
Player1Score++;
Player1Text.GetComponent().text = Player1Score.ToString();
ResetPosition();
}

public void Player2Scored()
{
Player2Score++;
Player2Text.GetComponent().text = Player2Score.ToString();
}

}

Use code-tags when posting code.

Telling us the actual error and what line of the code its on would be more helpful. :wink:

Just so you know, this post isn’t related to 2D features which is what this forum is for. It’s a scripting issue so here would’ve been more appropriate.