The Capsule-spawnPoint objects represent candidate locations, where we might wish to create an instance of our ball prefab. When our SpawnPointManager object, inside the Cube-player GameObject, receives the Start() message, it creates an array called spawnPoints of all the GameObjects in the scene that have the Respawn tag. This can be achieved through a call to the built-in FindGameObjectsWithTag("Respawn") method. This creates an array of all the objects in the scene with the Respawn tag – that is, the four Capsule-spawnPoint objects we created in our scene.
When our BallSpawner GameObject, Cube-player, receives the Start() message, it sets the spawnPointManager variable to be a reference to its sibling SpawnPointManager script component. Next, we used the InvokeRepeating(...) method to schedule the CreateSphere() method to be called every 1 second.