|
@ -161,10 +161,11 @@ public class playerController : MonoBehaviour { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (heartBlack == true && heartColor == false){ |
|
|
if (heartBlack == true && heartColor == false){ |
|
|
//heartCanister.guiTexture.color = Color.black;
|
|
|
|
|
|
|
|
|
|
|
|
//else (heartCanister.guiTexture.color = Color.red);
|
|
|
|
|
|
|
|
|
//heartCanister.guiTexture.color = Color.black;
|
|
|
|
|
|
hearts[i].GetComponent<Image>().color = Color.black; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
else hearts[i].GetComponent<Image>().color = Color.red; |
|
|
}//end for
|
|
|
}//end for
|
|
|
|
|
|
|
|
|
displayedHealth = health; |
|
|
displayedHealth = health; |
|
|