Assets/Scripts/BoardManager.cs
/// <summary>
/// returns the actual center of a tile in the board so we can place a Prefab correctly
/// </summary>
returns the actual center of a tile in the board so we can place a Prefab correctly
returns the actual center of a tile in the board so we can place a Prefab correctly
private Vector3 GetTileCenter(int x, int z)
    {
        Vector3 origin = Vector3.zero;
        origin.x += (TILE_SIZE * x) + TILE_SIZE / 2 + offsetX;
        origin.y = offsetY;
        origin.z += (TILE_SIZE * z) + TILE_SIZE / 2 + offsetZ;
        return origin;
    }
private Vector3 GetTileCenter ( int x , int z ) { Vector3 origin = Vector3 . zero ; origin . x += ( TILE_SIZE * x ) + TILE_SIZE / 2 + offsetX ; origin . y = offsetY ; origin . z += ( TILE_SIZE * z ) + TILE_SIZE / 2 + offsetZ ; return origin ; }
returns the actual center of a tile in the board so we can place a Prefab correctly
returns the actual center of a tile in the board so we can place a Prefab correctly
x
int
z
int