Example #1
0
 public void Initialize(ChunkSaveData saveData, int size, Material material, Terrain world)
 {
     _meshFilter = GetComponent<MeshFilter>();
     _meshCollider = GetComponent<MeshCollider>();
     this._data = Helper.SingleToMulti(size,size,size,saveData.Data);
     GetComponent<MeshRenderer>().material = material;
     _size = size;
     _parentWorld = world;
 }
Example #2
0
 public TerrainSaveData(int _0, int _1, int _2, ChunkSaveData[] chunks)
 {
     Chunk_0 = _0;
     Chunk_1 = _1;
     Chunk_2 = _2;
     Chunks = chunks;
 }