Browse Source

Fixed gui for level2

master
Joshua Reason 9 years ago
parent
commit
64ce8cddf2
4 changed files with 8 additions and 3 deletions
  1. BIN
      playable/Assets/Prefabs/Canvas.prefab
  2. +4
    -0
      playable/Assets/Prefabs/Canvas.prefab.meta
  3. BIN
      playable/Assets/Scenes/Level2.unity
  4. +4
    -3
      playable/Assets/Scripts/playerController.cs

BIN
playable/Assets/Prefabs/Canvas.prefab View File


+ 4
- 0
playable/Assets/Prefabs/Canvas.prefab.meta View File

@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: ea73c716bda774f4bb756900c863c6cb
NativeFormatImporter:
userData:

BIN
playable/Assets/Scenes/Level2.unity View File


+ 4
- 3
playable/Assets/Scripts/playerController.cs View File

@ -161,10 +161,11 @@ public class playerController : MonoBehaviour {
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
displayedHealth = health;

Loading…
Cancel
Save