update c# class examples

This commit is contained in:
Hana
2023-01-11 21:03:35 +01:00
parent 33c61914b4
commit 9e90766a92
37 changed files with 144 additions and 121 deletions

View File

@@ -86,9 +86,8 @@ attach the following script:
.. code-tab:: csharp
using Godot;
using System;
public class Node : Godot.Node
public partial class Node : Godot.Node
{
public override void _Input(InputEvent inputEvent)
{
@@ -346,9 +345,8 @@ node:
.. code-tab:: csharp
using Godot;
using System;
public class Node2D : Godot.Node2D
public partial class Node2D : Godot.Node2D
{
private bool dragging = false;
private int clickRadius = 32; // Size of the sprite.