// Update is called once per frame void Update() { if (_oldCount != _ballManager.BallsLeftCount() - 1 && _ballManager.BallsLeftCount() != 0) { if (_ballManager.BallsLeftCount() < 3) { soundsManager.PlayBallLoss(); } _oldCount = _ballManager.BallsLeftCount() - 1; _text.text = _oldCount.ToString(); } }