From 686529adc0ab9438fa9143b0bc41f97e533618a4 Mon Sep 17 00:00:00 2001 From: werner mendizabal Date: Wed, 13 Feb 2019 23:54:23 -0600 Subject: [PATCH] Fix ui_code_a_life_bar documentation In order for the following section to still be valid: Play the game to see the bar animate smoothly. But the text displays decimal number and looks like a mess The variable should be set as a float instead of an int. --- getting_started/step_by_step/ui_code_a_life_bar.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getting_started/step_by_step/ui_code_a_life_bar.rst b/getting_started/step_by_step/ui_code_a_life_bar.rst index 8807358cc..68bf99c0d 100644 --- a/getting_started/step_by_step/ui_code_a_life_bar.rst +++ b/getting_started/step_by_step/ui_code_a_life_bar.rst @@ -410,7 +410,7 @@ clear its content. Let's animate the ``animated_health`` value. Call the .. code-tab:: csharp // Add this to the top of your class. - private int _animatedHealth = 0; + private float _animatedHealth = 0; public void UpdateHealth(int health) {