Ejemplo n.º 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
    }
Ejemplo n.º 2
0
 private void ShutdownHeightMap()
 {
     HeightMap.Clear();
     HeightMap = null;
 }