I made these 2 scripts and when I finished them they both got the same errors and I don't know what they are from.
![alt text][1]
[1]: http://piclair.com/data/coa6k.jpg
and here is the scripts.
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class Chunk : MonoBehaviour {
public GameObject worldGO;
private World world;
private List newVertices = new List();
private List newTriangles = new List();
private List newUV = new List();
private float tUnit = 0.25f;
private Vector2 tStone = new Vector2 (1, 0);
private Vector2 tGrass = new Vector2 (0, 1);
private Vector2 tGrassTop = new Vector2 (1, 1);
private Mesh mesh;
private MeshCollider col;
private int faceCount;
public int chunkSize=16;
public int chunkX;
public int chunkY;
public int chunkZ;
// Use this for initialization
void Start () {
world=worldGO.GetComponent(\"World\") as World;
mesh = GetComponent ().mesh;
col = GetComponent ();
GenerateMesh();
}
// Update is called once per frame
void Update () {
}
void GenerateMesh(){
for (int x=0; x=worldX || x<0 || y>=worldY || y<0 || z>=worldZ || z<0){
return (byte) 1;
}
return data[x,y,z];
}
}
↧