Health Bar variant

Fairly minor adjustment but I changed the health colour in photoshop and added a couple of text fields for minimum and maximum health values. I set the maximum value at runtime in Player.cs.

  void Start()
    {
        Text maxHealth = GameObject.Find("Maximum Health").GetComponent<Text>();
        maxHealth.text = maxHealthPoints.ToString();
    }

Privacy & Terms