2
0
Эх сурвалжийг харах

Update scripting_continued.rst

Ruud Cremers 7 жил өмнө
parent
commit
7f4a8c68be

+ 2 - 2
getting_started/step_by_step/scripting_continued.rst

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