private void SetThrowParameters(ShotStatus stauts) { if (stauts == ShotStatus.FAILED) { m_BallThrower.RepeatShot(); return; } ShotData currentThrowData = m_ShootingSpots[m_SpotsCounter].GetShotData(m_TrDestinationPoint.position); m_BallThrower.SetNextShot(currentThrowData); m_SpotsCounter = m_SpotsCounter + 1 <= m_ShootingSpots.Length - 1 ? m_SpotsCounter + 1 : 0; }