Sorry, but i don´t have a clue about this error

Hey guys,
This should be a spawnsystem, working with the photonplugin, but there is a error i don´t know how to deal with. please help :slight_smile:

In the future, please post scripts as text not images. You can select your script and use the 101/010 button to format it. As for your question, line 13 should be:

spawnSpots = GameObject.FindObjectsOfType<SpawnSpot>();

There are two issues with your original code. Since spawnSpots is an array you want ‘Objects’ with an ‘s’ rather than the singular ‘Object’ and you need the ‘()’ to envoke the method.

I think it’s because you’re using FindObjectOfType instead of FindObjectsOfType. The first returns a single object, the second returns an array (which I believe is what you want)

Thank you, i changed it, but now i have a new error:

Internal compiler error. See the console log for more information. output was:
Unhandled Exception: System.TypeLoadException: Could not load type ‘System.Func`1’ from assembly ‘mscorlib, Version=, Culture=neutral, PublicKeyToken=7cec85d7bea7798e’.

could you please help me one more time?