public void highlightRoomTiles() // TODO rename to select? { foreach (Tile tile in tiles) { TilePartialBehaviour behaviour = tile.tileObject.GetComponent <TilePartialBehaviour>(); behaviour.select(); } }
public int roomId; // TODO roomId public Tile(GameObject tileObject, int x, int y, bool isVoid, int northEastWall, int northWestWall) // TODO select coordinates { this.tileObject = tileObject; this.x = x; this.y = y; this.isVoid = isVoid; this.northEastWall = northEastWall; this.northWestWall = northWestWall; behaviour = tileObject.GetComponent <TilePartialBehaviour>(); behaviour.isVoid = isVoid; // TODO make unshit behaviour.northEastWall = northEastWall; behaviour.northWestWall = northWestWall; behaviour.northEastDoorStatus = TilePartialBehaviour.CLOSED; behaviour.northWestDoorStatus = TilePartialBehaviour.CLOSED; behaviour.northEastDoorOpen = 0; behaviour.northWestDoorOpen = 0; behaviour.selected = false; }