public static void RemoveChunk(VoxelandChunk chunk)
 {
     if (chunk?.transform != null && loadedChunks != null)
     {
         Int3 owningChunk = ApiHelper.Int3(chunk.transform.position);
         loadedChunks.RemoveChunk(owningChunk);
     }
 }
Exemple #2
0
        public static void RemoveChunk(Vector3 chunk)
        {
            Int3 owningChunk = new Int3((int)chunk.x, (int)chunk.y, (int)chunk.z);

            loadedChunks.RemoveChunk(owningChunk);
        }