From 15fbfc5d6446d2f279c546b956c67c9a173da2ac Mon Sep 17 00:00:00 2001 From: Hana - Piralein <48352564+Piralein@users.noreply.github.com> Date: Sat, 13 Jul 2024 13:39:05 +0200 Subject: [PATCH] Adding "Using System;" line to default C# script Co-Authored-By: Bryan Gillis <7204836+brgillis@users.noreply.github.com> --- getting_started/step_by_step/scripting_first_script.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/getting_started/step_by_step/scripting_first_script.rst b/getting_started/step_by_step/scripting_first_script.rst index 66e212999..9c2bcc9a8 100644 --- a/getting_started/step_by_step/scripting_first_script.rst +++ b/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;