strange error

Hi guys,
i have a strange 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=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e’.

the code is:

using UnityEngine;
using System.Collections;

public class NetworkManager : MonoBehaviour {

	public Camera standbyCamera;
	SpawnSpot[] spawnSpots;


	// Use this for initialization								
	void Start () 
	{
		spawnSpots = GameObject.FindObjectsOfType<SpawnSpot>();
		Connect ();
	}
	
	// Update is called once per frame
	void Connect () 
	{
		PhotonNetwork.ConnectUsingSettings ("1.0");
	}

	void OnGUI ()
	{
		GUILayout.Label (PhotonNetwork.connectionStateDetailed.ToString ());
	}

	void OnJoinedLobby ()
	{
		PhotonNetwork.JoinRandomRoom ();
	}

	void OnPhotonRandomJoinFailed()
	{
		PhotonNetwork.CreateRoom (null);
	}

	void OnJoinedRoom()
	{
		SpawnMyPlayer ();
	}

	void SpawnMyPlayer ()
	{
		if (spawnSpots == null) 
		{
			Debug.LogError ("HellStarted");
		}
		SpawnSpot mySpawnSpot = spawnSpots [Random.Range (0, spawnSpots.Length)];
		PhotonNetwork.Instantiate("PlayerController", mySpawnSpot.transform.position,  mySpawnSpot.transform.rotation , 0);
		standbyCamera.enabled = false;
	}


}

i´d be very nice if you could help me <3

Internal compiler errors are horrible - it basically means something has gone wrong internally, and the compiler has broke so it can’t tell you what!

This could be an issue with your setup. If you can’t compile any projects at all then that’s likely to be the case and I’d start with a reinstall.

If you don’t normally experience it, and it’s just with this bit of code, there’s only 1 reliable way of fixing this type of thing - comment out large chunks of your code until it works again. Put back some code until it stops working. Then comment out a bit of what you put back until it starts working…

Divide and conquer basically. By progressively commenting out bits of your code you can narrow down on the line that’s causing the proble,.