Browse Source

Merge pull request #1397 from Ruud88x/master

Update scripting_continued.rst
Nathan Lovato 7 years ago
parent
commit
398ae9f9d0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      getting_started/step_by_step/scripting_continued.rst

+ 2 - 2
getting_started/step_by_step/scripting_continued.rst

@@ -70,11 +70,11 @@ with the following script:
     
     
     public class CustomLabel : Label
     public class CustomLabel : Label
     {
     {
-        private int _accum;
+        private float _accum;
 
 
         public override void _Process(float delta)
         public override void _Process(float delta)
         {
         {
-            _accum++;
+            _accum += delta;
             Text = _accum.ToString();
             Text = _accum.ToString();
         }
         }
     }
     }