Mapping a texture to a qadrillateral

So i have a Tile class that can be applied to my class. This tile class has a 2DTexture that is public. I can set it in inspector. The class makes my quad and then assigns that 2DTexture to my tile. However I am running into an issue where the incorrect is mapped to the tile.

    void BuildTexture()
    {
        Renderer renderer = GetComponent<MeshRenderer>();

        renderer.material.mainTexture = this.texture;
    }

Above is the code I am using for this. Below is the result that is rendered (have mercy, I am using pokemon tiles and a crappy mario image for testing.)

The bottom right corner should be the corner for the path. Instead it is rendered as a straight path. Am I missing something in my code?

I fixed it. It was my uv calculations.