Example #1
0
        public void Refresh()
        {
            if (!terrainChunk)
            {
                terrainChunk = gameObject.GetComponent <TerrainChunk>();
            }

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

            terrainChunk.Initialize();
        }