소스 검색

Merge pull request #1397 from Ruud88x/master

Update scripting_continued.rst
Nathan Lovato 7 년 전
부모
커밋
ffb19e2692
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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
     {
-        private int _accum;
+        private float _accum;
 
         public override void _Process(float delta)
         {
-            _accum++;
+            _accum += delta;
             Text = _accum.ToString();
         }
     }