public void Init(int mHealth) { value = savedHealth; maxHealth = mHealth; if (UIDisplay) { UIDisplay.ChangeFill(value / maxHealth, true); } }
private void UpdateDisplay() { if (UIDisplay) { UIDisplay.ChangeFill((float)value / maxHealth); } }