TiledMapper.Tile.attachTile C# (CSharp) Méthode

attachTile() protected méthode

protected attachTile ( Tile tile, int fromDir ) : void
tile Tile
fromDir int
Résultat void
        protected void attachTile(Tile tile, int fromDir)
        {
            neighbours[fromDir] = tile;
        }

Usage Example

Exemple #1
0
 public Tile AttachToTile(Tile tile, int fromDir)
 {
     tile.attachTile(this, fromDir);
     neighbours[(fromDir + 2) % 4] = tile;
     blocks[(fromDir + 2) % 4]     = tile.GetBlock(fromDir);
     return(this);
 }
All Usage Examples Of TiledMapper.Tile::attachTile