I’m trying to figure out how to add a bool argument to my code here instead of having both the enableButton and disableButton functions here.
//enable button function
private void enableButton (string x)
{
timerButton.interactable = true;
timeLabel.text = x;
}
//disable button function
private void disableButton(string x)
{
timerButton.interactable = false;
timeLabel.text = x;
}