private void CreateTrainField() { m_TrainingPoints = new TrainingPoint[Random.Range(250, 350)]; //TODO REMOVE MAGIC NUMBERS for (int point = 0; point < m_TrainingPoints.Length; point++) { Vector2 position = new Vector2(Random.Range(m_BottomLeft.x, m_UpperRight.x), Random.Range(m_BottomLeft.y, m_UpperRight.y)); int label = m_MainManager.ComputeLabel(position); m_TrainingPoints[point] = new TrainingPoint(position, label); GameObject pointObject = m_MainManager.Spawn(position); m_TrainingPoints[point].TrainingPointObject = pointObject; } }