示例#1
0
    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;
        }
    }
示例#2
0
 public static void showImage(TILE_TYPE tileType, AbstractTile.TileImageInfo cardInfo)
 {
     setCardInfo(tileType, cardInfo);
     image.gameObject.SetActive(true);
     image.texture = getTileTexture(tileType);
 }
示例#3
0
 public static void showImage(TILE_TYPE tileType, AbstractTile.TileImageInfo cardInfo)
 {
     CardManager.showImage(tileType, cardInfo);
 }