private void OnDisable() { if (globalEntityContainer.IsLoaded) { globalEntityContainer.AsyncUnloadTask().Wait(); } foreach (var chunk in _chunkContainerPool) { chunk.AsyncUnloadTask().Wait(); } }