mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 16:28:59 +00:00
Adding "Using System;" line to default C# script
Co-Authored-By: Bryan Gillis <7204836+brgillis@users.noreply.github.com>
This commit is contained in:
co-authored by
Bryan Gillis
parent
4e60b38a90
commit
15fbfc5d64
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user