Esempio n. 1
0
    protected override void Awake()
    {
        base.Awake();

        // Search through custom elevation data directory to find individual elevation tiles.
        // Record which TileIds are present for use in HasElevationTile.
        var elevationDataFiles = Directory.GetFiles(ElevationDataDirectory, "*.et");

        foreach (var elevationDataFile in elevationDataFiles)
        {
            var tileId = TileId.FromKey(Path.GetFileNameWithoutExtension(elevationDataFile));
            _tiles.Add(tileId);
        }
    }