var health1 : Texture2D; // One life left var health2 : Texture2D; // Two lifes left var health3 : Texture2D; // Full health static var LIVES = 3; function Update () { if (LIVES==3) { guiTexture.texture = health3; } else if (LIVES==2) { guiTexture.texture = health2; } else if (LIVES==1) { guiTexture.texture = health1; } else if(LIVES==0) { //Game Over } }