Hey,
My game is made up of sections of various shapes each with spawnpoints located within each section’s prefab. The idea is to lay the next section then spawn the enemies at the spawn positions.
Now, each section has a script attached that looks through the spawnpoints to see where they are (based on their name - “_left”, “_right”, etc.) and marks them as either being on the left or the right of that section. It then adds this information to a List which is stored on that section and later used to spawn the enemies in another script. This is all done inside the Start() function in the script.
What I would like to do is to have this section’s List be used for the other instances of that section that may follow, rather than doing this caching every time.
Any ideas on how to achieve this would be great.