TiledMapper.Tile.attachTile C# (CSharp) Method

attachTile() protected method

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

Usage Example

コード例 #1
0
ファイル: Tile.cs プロジェクト: 2cwldys/fodev-tools
 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