diff options
Diffstat (limited to 'Assets/Scripts/Player/PlayerStats.cs')
| -rw-r--r-- | Assets/Scripts/Player/PlayerStats.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Assets/Scripts/Player/PlayerStats.cs b/Assets/Scripts/Player/PlayerStats.cs index ed26d4b..a6020b8 100644 --- a/Assets/Scripts/Player/PlayerStats.cs +++ b/Assets/Scripts/Player/PlayerStats.cs @@ -34,6 +34,8 @@ public class PlayerStats : MonoBehaviour public Slider HungerBar; public Slider BladderBar; + public Material SimDeadMaterial; + private void Start() { HungerBar.maxValue = Hunger; @@ -66,11 +68,12 @@ public class PlayerStats : MonoBehaviour if (Hunger <= 0) { + gameObject.GetComponent<MeshRenderer>().material = SimDeadMaterial; + Debug.Log("You have starved to death!"); Hunger += 100; } - UpdateUI(); } |
