public void ResetValues() { PlayerScore.text = PlayerOriginalScore.ToString(); GameCountdownTime = GameCountdownReset; GameCountDown.text = GameCountdownTime.ToString("0.00"); GameCountDown.color = BlueColor; }
private void Update() { if (GameController.IsStartGame) { GameCountdownTime -= Time.deltaTime; GameCountDown.text = GameCountdownTime.ToString("0.00"); if (GameCountdownTime <= GameCountdownReset / 2) { GameCountDown.color = RedColor; } } }