private IEnumerator TakeReady(bool addNewLine = true) { yield return(new WaitForSeconds(0.1f)); controller.SetOriginBall(ballsManager.balls[0].transform); if (addNewLine) { bricksManager.NewBrickLine( Mathf.RoundToInt(score.Current * 0.8f + 1), score.Current, Mathf.Clamp(gameManager.config.brickBaseChance + score.Current / gameManager.config.brickChanceFactor, 0, 70), Mathf.Clamp(gameManager.config.ballBaseChance + score.Current / gameManager.config.ballChanceFactor, 0, 50)); GameData.Save(score.Current, ballsManager.balls[0].transform.position); } }