From a8fe54592f727ddad05040b82ccb490218682d7c Mon Sep 17 00:00:00 2001 From: marcinzelent Date: Sat, 1 Feb 2020 17:06:41 +0100 Subject: Renamed to Dragon Dust --- nGJ2019/Assets/Scripts/HealthBar.cs | 54 ------------------------------------- 1 file changed, 54 deletions(-) delete mode 100644 nGJ2019/Assets/Scripts/HealthBar.cs (limited to 'nGJ2019/Assets/Scripts/HealthBar.cs') diff --git a/nGJ2019/Assets/Scripts/HealthBar.cs b/nGJ2019/Assets/Scripts/HealthBar.cs deleted file mode 100644 index 685e297..0000000 --- a/nGJ2019/Assets/Scripts/HealthBar.cs +++ /dev/null @@ -1,54 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -public class HealthBar : MonoBehaviour -{ - public GameObject crystalPrefab; - public Material liveCrystal; - public Material deadCrystal; - - public int lives; - - private int currentHealth; - public int health - { - get{return currentHealth;} - set - { - currentHealth = value; - updateCrystals(); - } - } - - private List crystals = new List(); - - private void updateCrystals() - { - for(int i=0; i i) - crystals[i].material = liveCrystal; - else - crystals[i].material = deadCrystal; - } - } - - void Start() - { - for(int i=0; i()); - } - - health = lives; - updateCrystals(); - } - - // Update is called once per frame - void Update() - { - - } -} -- cgit v1.2.3