public void Refresh() { if (!terrainChunk) { terrainChunk = gameObject.GetComponent <TerrainChunk>(); } terrainChunk.CreateChunk(); }
public void Initialize() { terrainChunk = gameObject.GetComponent <TerrainChunk>(); if (!terrainChunk) { terrainChunk = gameObject.AddComponent <TerrainChunk>(); } terrainChunk.Initialize(); }