예제 #1
0
 public void SetTile(Constants.TileType type, Constants.TileType toptype, int x, int y)
 {
     if (type == Constants.TileType.NONE)
     {
         return;
     }
     base_tilemap_.SetTile(new Vector3Int(x, y, 0), GeneralFunctions.GetTileBase(Constants.GetSpriteFromType(type)));
     if (toptype != Constants.TileType.NONE)
     {
         entity_tilemap_.SetTile(new Vector3Int(x, y, 0), GeneralFunctions.GetTileBase(Constants.GetSpriteFromType(toptype)));
     }
 }
예제 #2
0
 public void Init(Constants.TileType type, Constants.TileType toptype)
 {
     tile_type_     = type;
     top_tile_type_ = toptype;
 }