java to C#

hi am trying to create a simple GUItexture that will change depending on collision with an item the code in java is:
please change to c#

static var Life : int = 0;

var Threelife : Texture2D;
var Twolife : Texture2D;
var Onelife : Texture2D;
var Nolife : Texture2D;

function Start () {
    Life = 0;
}

function Update () {
    if(Life == 1){
        guiTexture.texture = Twolife;
    }
    else if (Life == 2){
        guiTexture.texture = OneLife;
    }
    else if (Life >= 3) {
        guiTexture.texture = NoLife;
    }
    else {
        guiTexture.texture = ThreeLife;
    }
}

This looks like an easy script to translate.

//javascript
var Threelife : Texture2D;

//C#
public Texture2D Threelife;

//javascript
function Start() { ... }

//C#
void Start() { ... }

If you’re really having that much trouble, this isn’t necessarily a good place to learn C# – luckily there are numerous tutorials around the net that can help you with that.

C#

public static int Life = 0;
public Texture2D Threelife, Twolife, Onelife, Nolife;

void Start () 
{ 
	Life = 0; 
}

void Update () 
{ 
	if(Life == 1)
	{ 
		guiTexture.texture = Twolife; 
	}
	else if (Life == 2)
	{ 
		guiTexture.texture = OneLife; 
	}
	else if (Life >= 3) 
	{ 
		guiTexture.texture = NoLife; 
	}
	else 
	{ 
        guiTexture.texture = ThreeLife; 
	} 
}