void Start()
    {
        _gen = GameObject.Find("TerrainGenerator").GetComponent <OldTileTypeGenerator>();
        var data = _gen.GetTileData(TileType);

        if (TileTypeID != -1)
        {
            data = _gen.GetTileData(TileTypeID);
        }
        var renderer = GetComponent <SpriteRenderer>();

        renderer.sprite     = data.DefaultSprite;
        Health              = data.Health;
        Name                = data.Name;
        DamageOverlaySprite = data.DefaultDamageOverlay;
        _startHealth        = (int)Health;
    }
    public void ChangeBlockType(int tileID)
    {
        _gen = GameObject.Find("TerrainGenerator").GetComponent <OldTileTypeGenerator>();
        var            data     = _gen.GetTileData(tileID);
        SpriteRenderer renderer = GetComponent <SpriteRenderer>();

        renderer.sprite = data.DefaultSprite;
        Health          = data.Health;
        Name            = data.Name;
        _startHealth    = (int)Health;
    }