We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65d587d commit b2f7514Copy full SHA for b2f7514
1 file changed
Runtime/HealthDisplayer.cs
@@ -97,7 +97,7 @@ private void UpdateHealthDisplayRuntime()
97
return;
98
case TextStyle.Percentage:
99
if (TextObject != null)
100
- TextObject.text = (Health.CurrentHealth / Health.MaxHealth).ToString() + "%";
+ TextObject.text = (Health.CurrentHealth / Health.MaxHealth * 100).ToString() + "%";
101
102
case TextStyle.Custom:
103
MaxHealthTextObject.text = Health.MaxHealth.ToString();
0 commit comments