how can i press a button and get the sprite to be active and the other sprites inactive ??

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

public class Player : MonoBehaviour
{

private Text Score;
public int scoreAmount;
public GameObject eqb1;
public GameObject eqb2;
public GameObject eqb3;
public GameObject eqb4;
public GameObject eqb5;

// Start is called before the first frame update
void Start()
{
scoreAmount = 0;
Score = GetComponent();
eqb1.SetActive(true);
eqb2.SetActive(false);
eqb3.SetActive(false);
eqb4.SetActive(false);
eqb5.SetActive(false);
}

// Update is called once per frame
private void Update()
{
Score.text = scoreAmount.ToString();

if (eqb1.SetActive true) ;
{
eqb2.SetActive false;
eqb3.SetActive false;
eqb4.SetActive false;
eqb5.SetActive false;
}

if (eqb2.SetActive true)
{
eqb1.SetActive false;
eqb3.SetActive false;
eqb4.SetActive false;
eqb5.SetActive false;
}

}

Look into Lists or Arrays and then into loops, such as Foreach. Basically, put your objects into a List or Array and then depending on what object is selected, enable that one and disable the others. There are plenty of tutorials and forum posts out there that explain these concepts. Look them all up, understand them as best as you can and then try to piece together your solution.

This post is not discussing anything 2D (the fact you have Sprites isn’t relevant here) but how to use GameObjects and contains code that isn’t valid C# syntax either. So you know, you should ask general scripting questions on the Scripting forum and there’s a dedicated UI forum here.

Also, always post code using code-tags . Note you can edit your post above too, to include this.

I would suggest looking at some basic script and starter tutorials on Unity Learn too.

I’ll move your post for you.