Wierdly loading game?

[35043-screenshot+(70).png|35043]So I added this code into my game and my game does this. I used this tutorial Unity 2D Top Down RPG - Episode 2 - YouTube

and this script

using UnityEngine;
using System.Collections;

public class Levels : MonoBehaviour {

private int levelWidth;
private int levelHeight;

public Transform NcolWoodOneTile;
public Transform NcolGrassOneTile;
private Color[] tileColors;

public Color NcolWoodOneColor;
public Color NcolGrassOneColor;
public Color SpawnPointColor;

public Texture2D levelTexture;

public Entity Player;

// Use this for initialization
void Start () {
	levelWidth = levelTexture.width;
	levelHeight = levelTexture.height;
	loadLevel ();
}

// Update is called once per frame
void Update () {

}

void loadLevel () {
	tileColors = new Color[levelWidth * levelHeight];
	tileColors = levelTexture.GetPixels ();

	for(int y = 0; y < levelHeight; y++)
	{
		for(int x = 0; x < levelWidth; x++)
		{
			if(tileColors[x+y*levelWidth] == NcolWoodOneColor)
			{
				Instantiate(NcolWoodOneTile, new Vector3(x, y), Quaternion.identity);
			}
			if(tileColors[x+y*levelWidth] == NcolGrassOneColor)
			{
				Instantiate(NcolGrassOneTile, new Vector3(x, y), Quaternion.identity);
			}
			if(tileColors[x+y*levelWidth] == SpawnPointColor)
			{
				Instantiate(NcolGrassOneTile, new Vector3(x, y), Quaternion.identity);
				Vector2 pos = new Vector2(x, y);
				Player.transform.position = pos;
			}
		}
	}
}

}

For .GetPixels to work your texture must had the read/write flag enabled, you can do this on the texture in question through the inspector. Your error is correct.

You can see the check box in the screenshots from the manual. Go find the texture(image) and put a checkmark to enable Read/Write.