private void Update() { if (ball.InPlay) { inPlayTime -= Time.deltaTime; if (inPlayTime <= 0f) { inPlayTime = 0f; pinCounter.PinsHaveSettled(); } } int text = Mathf.RoundToInt(inPlayTime); playTimer.text = text.ToString(); }