OnTriggerEnter Help (246207)

Hello, I’m making a Pachinko game. I tried to update the score by having the ball fall down and collide the scoreboxes at the bottom. Can you please check my code using OnTriggerEnter?

The scoreboxes are triggered as well in the inspector box.

public void OnTriggerEnter(Collider ball)
{
if (ball.gameObject.CompareTag(“ScoreBox0”))
{
UpdateScore(0);
Debug.Log(“0”);
}

    if (ball.gameObject.CompareTag("ScoreBox50"))
    {
        UpdateScore(50);
        Debug.Log("50");
    }

    if (ball.gameObject.CompareTag("ScoreBox100"))
    {
        UpdateScore(100);
        Debug.Log("100");
    }
}

I recommend using a void OnColissionEnter and putting a platform in the bottom of the 0, 50, 100 (3 different platforms for every number) then u make it so when it collides with this platforms updates the score depending on the score you want to give
PD: If the player has to throw the bals where he wants make more obstacles or increase the height of the vertical platform