void OnGUI()
{
//TODO save pos as var, make ifs into loop
/*if(currenthealth>=1) GUI.DrawTexture (new Rect(20,20,50,25), heart, ScaleMode.ScaleToFit);
if(currenthealth>=2) GUI.DrawTexture (new Rect(70,20,50,25), heart, ScaleMode.ScaleToFit);
if(currenthealth>=3) GUI.DrawTexture (new Rect(120,20,50,25), heart, ScaleMode.ScaleToFit);*/
GUI.DrawTexture (new Rect (20, 20, 100, 50), healthEnd, ScaleMode.ScaleToFit);
for(int i=1; i < currenthealth; i++) {
GUI.DrawTexture (new Rect ((20+32*i),20,100,50), healthMiddle, ScaleMode.ScaleToFit);
}
GUI.DrawTexture (new Rect ((20+32*currenthealth)+5, 21, 100, 50), healthStart, ScaleMode.ScaleToFit);
}