Пример #1
0
    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
    }
Пример #2
0
 private void ShutdownHeightMap()
 {
     HeightMap.Clear();
     HeightMap = null;
 }