public void ClearTerraine(HeightMap heightMap) { heightMap.Clear(); Tilemap.ClearAllTiles(); #if UNITY_EDITOR DestroyImmediate(IEnergy.CheckpointsParents); #else foreach (var child in FindObjectsOfType <EnergyRecovery>()) { Destroy(child.gameObject); } #endif }
private void ShutdownHeightMap() { HeightMap.Clear(); HeightMap = null; }