// Update is called once per frame void Update() { if (!_isGameOver) { if (!_isGameRunning && Input.GetButton("Jump")) { Ball.Accelarate(); _isGameRunning = true; StartScreen.SetActive(false); } if (_isGameRunning) { _timeRunning += Time.deltaTime; Timer.text = ((int)(_timeRunning / 60)) + ":" + ((int)(_timeRunning % 60)); } if (_score >= _brickCount) { GameWon(); } } }