diff --git a/namedropper/Assets/GameOverScreen.cs b/namedropper/Assets/GameOverScreen.cs index 75e9133..0cf27ca 100644 --- a/namedropper/Assets/GameOverScreen.cs +++ b/namedropper/Assets/GameOverScreen.cs @@ -23,23 +23,21 @@ public class GameOverScreen : MonoBehaviour ScoreStack blueScoreStack = GameObject.Find("/ScoreStackBlue").GetComponent(); ScoreStack redScoreStack = GameObject.Find("/ScoreStackRed").GetComponent(); + _gameOverMessage.text = "" + blueScoreStack.Score + " to " + redScoreStack.Score + "\n"; if (blueScoreStack.Score > redScoreStack.Score) { - _gameOverMessage.color = Color.blue; - _gameOverMessage.text = "BLUE TEAM WINS!\n" + blueScoreStack.Score + " to " + redScoreStack.Score; + _gameOverMessage.text += "BLUE TEAM WINS!"; } else if (redScoreStack.Score > blueScoreStack.Score) { - _gameOverMessage.color = Color.red; - _gameOverMessage.text = "RED TEAM WINS!\n" + redScoreStack.Score + " to " + blueScoreStack.Score; + _gameOverMessage.text += "RED TEAM WINS!"; } else { - _gameOverMessage.color = Color.white; - _gameOverMessage.text = "TIE!\n" + redScoreStack.Score + " to " + blueScoreStack.Score; + _gameOverMessage.text += "TIE!"; } - _gameOverMessage.text += "\n\nPress 'R' to replay"; + _gameOverMessage.text += "\n\nPress 'R' to replay"; } } diff --git a/namedropper/Assets/Scenes/GameOver.unity b/namedropper/Assets/Scenes/GameOver.unity index acbc608..f49eb19 100644 --- a/namedropper/Assets/Scenes/GameOver.unity +++ b/namedropper/Assets/Scenes/GameOver.unity @@ -229,7 +229,7 @@ MonoBehaviour: m_HorizontalOverflow: 1 m_VerticalOverflow: 1 m_LineSpacing: 1 - m_Text: GAME OVER + m_Text: GAME OVERsdfasdd --- !u!222 &1225785574 CanvasRenderer: m_ObjectHideFlags: 0