boardManager.isOccupied C# (CSharp) Method

isOccupied() public method

public isOccupied ( Vector2 pos ) : bool
pos Vector2
return bool
    public bool isOccupied(Vector2 pos)
    {
        // This is modified using the tile class
        int x, y;
        List<int> temp = vecToBoard (pos);
        x = temp [0];y = temp [1];
        if (board [x,y].wallIsActivated()||board [x,y].turretIsActivated()) {
            return true;
        }else{
            return false;
        }
    }