Assets/Scripts/HighligthsManager.cs
/// <summary>
/// function that permits to highlight the possible moves on the board
/// </summary>
function that permits to highlight the possible moves on the board
function that permits to highlight the possible moves on the board
public void AllowedMovesHighlight(bool[,] moves) { 
        for (int x =0; x<8; x++)
        {
            for (int z = 0; z < 8; z++)
            {
                if (moves[x, z]) 
                {
                    GameObject go = GetHighlightObject();
                    go.SetActive(true);
                    go.transform.position = new Vector3(x + offsetX + BoardManager.Instance.TILE_SIZE/2, 0.27f+offsetY,z + offsetZ+ BoardManager.Instance.TILE_SIZE/2);
                }
            }
        }
    }
public void AllowedMovesHighlight ( bool [ , ] moves ) { for ( int x = 0 ; x < 8 ; x ++ ) { for ( int z = 0 ; z < 8 ; z ++ ) { if ( moves [ x , z ] ) { GameObject go = GetHighlightObject ( ) ; go . SetActive ( true ) ; go . transform . position = new Vector3 ( x + offsetX + BoardManager . Instance . TILE_SIZE / 2 , 0.27f + offsetY , z + offsetZ + BoardManager . Instance . TILE_SIZE / 2 ) ; } } } }
function that permits to highlight the possible moves on the board
function that permits to highlight the possible moves on the board
//slightly above on y to be above board tiles
moves
bool[,]