private int counter; // to know how many L shapes we've created thus far // Start is called before the first frame update void Start() { counter = 0; numberOfShapes = Random.Range(3, 5); // to get either 3 or 4 L shapes VisibilityGraphGenerator.setNumberOfLShapes(numberOfShapes); SpawnLShapes(); }