I'm trying to switch between 4 different texture on my topdown player help needed

I need some help and this is my script don’t know if i’m doing this entirely wrong. “update” I fixed it a bit but it still doesn’t want to swap between different textures. “update” this one works for those who feels like getting an free code

var Back : Texture;
var Front : Texture;
var Left : Texture;
var Right : Texture;
var Player : Transform;

function Update ()
{
if ( Input.GetKeyDown (KeyCode.A))

Player.renderer.material.mainTexture = Left;

if ( Input.GetKeyDown (KeyCode.S))

Player.renderer.material.mainTexture = Front;

if ( Input.GetKeyDown (KeyCode.W))

Player.renderer.material.mainTexture = Back;

if ( Input.GetKeyDown (KeyCode.D))

Player.renderer.material.mainTexture = Right;
}

Are you actually trying to apply the new texture? Because you never do that anywhere codewise. It’s just If-Statements that return true or false (which is irrelevant here, because you there is nothing inside the statements).
If I understand correctly you want something like:

if ( Input.GetButtondown ("A"))
{
renderer.material.mainTexture = Left;
}

i fixed it a bit got any advice?