public Grid(int positionX, int positionY, GameObject gridObject, TypeOfGrid typeOfGrid) { this.positionX = positionX; this.positionY = positionY; this.gridObject = gridObject; this.typeOfGrid = typeOfGrid; this.neightbour = new List <Grid>(); this.neightbourNotToRemove = new List <Grid>(); this.neightboutFourWay = new List <Grid>(); this.parent = null; this.visited = false; }
public void setTypeOfGrid(TypeOfGrid typeOfGrid) { this.typeOfGrid = typeOfGrid; }