static void setCardInfo(TILE_TYPE tileType, AbstractTile.TileImageInfo cardInfo) { tileNameStatic.text = cardInfo.getName(); tileCostStatic.text = cardInfo.getCost().ToString(); tileRentStatic.text = cardInfo.getRent().ToString(); switch (tileType) { case TILE_TYPE.BUSSINESS: tileTypeTextStatic.text = "BUSSINESS"; break; case TILE_TYPE.EMPTY: tileTypeTextStatic.text = "EMPTY"; break; case TILE_TYPE.FACTORY: tileTypeTextStatic.text = "FACTORY"; break; case TILE_TYPE.FARM: tileTypeTextStatic.text = "FARM"; break; case TILE_TYPE.FREE: tileTypeTextStatic.text = "FREE"; break; case TILE_TYPE.INNOVATIVE: tileTypeTextStatic.text = "INNOVATIVE"; break; case TILE_TYPE.OTHER: tileTypeTextStatic.text = "SPECIAL"; break; case TILE_TYPE.RESIDENCE: tileTypeTextStatic.text = "RESIDENCE"; break; case TILE_TYPE.VALUE: tileTypeTextStatic.text = "VALUE BUSSINESS"; break; } }
public static void showImage(TILE_TYPE tileType, AbstractTile.TileImageInfo cardInfo) { setCardInfo(tileType, cardInfo); image.gameObject.SetActive(true); image.texture = getTileTexture(tileType); }
public static void showImage(TILE_TYPE tileType, AbstractTile.TileImageInfo cardInfo) { CardManager.showImage(tileType, cardInfo); }