diff --git a/playable/Assets/Prefabs/Canvas.prefab b/playable/Assets/Prefabs/Canvas.prefab new file mode 100644 index 0000000..3054e31 Binary files /dev/null and b/playable/Assets/Prefabs/Canvas.prefab differ diff --git a/playable/Assets/Prefabs/Canvas.prefab.meta b/playable/Assets/Prefabs/Canvas.prefab.meta new file mode 100644 index 0000000..1d9851c --- /dev/null +++ b/playable/Assets/Prefabs/Canvas.prefab.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: ea73c716bda774f4bb756900c863c6cb +NativeFormatImporter: + userData: diff --git a/playable/Assets/Scenes/Level2.unity b/playable/Assets/Scenes/Level2.unity index 992cf2c..b97050d 100644 Binary files a/playable/Assets/Scenes/Level2.unity and b/playable/Assets/Scenes/Level2.unity differ diff --git a/playable/Assets/Scripts/playerController.cs b/playable/Assets/Scripts/playerController.cs index 457391b..7f6d107 100644 --- a/playable/Assets/Scripts/playerController.cs +++ b/playable/Assets/Scripts/playerController.cs @@ -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().color = Color.black; } + + else hearts[i].GetComponent().color = Color.red; }//end for displayedHealth = health;