public void IncreaseSpawnWidth() { if (objectSpawner != null) { objectSpawner.IncreaseSpawnWidth(); } if (obstacleSpawner != null) { obstacleSpawner.IncreaseSpawnWidth(); } if (spawnAreaIndicator != null) { Vector3 scale = spawnAreaIndicator.localScale; scale.x = obstacleSpawner.spawnBoxSize.x + .5f; spawnAreaIndicator.localScale = scale; } }