private void FixedUpdate() { if (isPlaying) { playerAI.UpdateStep(); player.UpdateStep(); ball.UpdateStep(); scoreText.text = currentScore.ToString(); } }