Update: I made the buttons go back to black on the Update() function of Buttons if gameTimer.gameOver = true.
Is there a better way to do this than updating Buttons.cs every frame?
Update: I had to duplicate the canvas under the buttons in the hierarchy. I also had to link the DefenderSpawner script to the GameTimer script and add a gameOver variable that is only true when the timer reaches 0. Then I only allow the OnMouseDown event in DefenderSpawner if gameTimer.gameOver = false.
My “You Won” text shows up under the attackers and defenders. I want it to show up on top of everything.