public CreateWallCap ( Cell, onCell, bool southEast ) : void | ||
onCell | Cell, | /// On cell. /// |
southEast | bool | /// Whether cap is on south east corner of cell or north west. /// |
Результат | void |
void CreateWallCap( Cell onCell, bool southEast )
{
if ( southEast )
Instantiate ( wallEndPrefab, onCell.centrePosition + new Vector3( 0.5f, 0, -0.5f ) * CellMaster.cellSize, Quaternion.identity );
else
Instantiate ( wallEndPrefab, onCell.centrePosition + new Vector3( -0.5f, 0, 0.5f ) * CellMaster.cellSize, Quaternion.identity );
}