Hello, i have this script but i want it to not be gui. so can you guys help me convert this into the 2d toolkit sprite so it will let me put sprites in there instead of gui thanks.
#pragma strict
var health3 : Texture2D;
var health2 : Texture2D;
var health1 : Texture2D;
static var LIVES = 4;
function Update (){
switch(LIVES){
case 3:
guiTexture.texture = health3;
break;
case 2:
guiTexture.texture = health2;
break;
case 1:
guiTexture.texture = health1;
break;
case 0:
//gameoverscripthere
break;
}
}