Bläddra i källkod

Adding "Using System;" line to default C# script

Co-Authored-By: Bryan Gillis <[email protected]>
Hana - Piralein 1 år sedan
förälder
incheckning
15fbfc5d64
1 ändrade filer med 4 tillägg och 2 borttagningar
  1. 4 2
      getting_started/step_by_step/scripting_first_script.rst

+ 4 - 2
getting_started/step_by_step/scripting_first_script.rst

@@ -101,7 +101,8 @@ the following line of code:
  .. code-tab:: csharp C#
 
     using Godot;
-
+    using System;
+    
     public partial class MySprite2D : Sprite2D
     {
     }
@@ -327,7 +328,8 @@ Here is the complete ``sprite_2d.gd`` file for reference.
  .. code-tab:: csharp C#
 
     using Godot;
-
+    using System;
+    
     public partial class MySprite2D : Sprite2D
     {
         private int _speed = 400;