Adam Ramberg 5d9f8dca71 WIP
2020-03-01 21:32:52 +01:00

18 lines
453 B
C#

// using UnityEngine;
// using UnityEngine.UI;
// namespace UnityAtoms.Examples
// {
// [AddComponentMenu("Unity Atoms/Examples/HealthBar")]
// public class HealthBar : MonoBehaviour
// {
// [SerializeField]
// private IntConstant _maxHealth = null;
// public void HealthChanged(int health)
// {
// GetComponent<Image>().fillAmount = 1.0f * health / _maxHealth.Value;
// }
// }
// }