Browse Source

Merge pull request #2188 from nonameentername/ui_code_a_life_bar_fix

Fix UI code a life bar documentation
Rémi Verschelde 6 years ago
parent
commit
f484dc4b86
1 changed files with 1 additions and 1 deletions
  1. 1 1
      getting_started/step_by_step/ui_code_a_life_bar.rst

+ 1 - 1
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
  .. code-tab:: csharp
 
 
     // Add this to the top of your class.
     // Add this to the top of your class.
-    private int _animatedHealth = 0;
+    private float _animatedHealth = 0;
 
 
     public void UpdateHealth(int health)
     public void UpdateHealth(int health)
     {
     {