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

@@ -127,10 +127,9 @@ like this:
#if TOOLS
using Godot;
using System;
[Tool]
public class CustomNode : EditorPlugin
public partial class CustomNode : EditorPlugin
{
public override void _EnterTree()
{
@@ -191,10 +190,9 @@ clicked. For that, we'll need a script that extends from
.. code-tab:: csharp
using Godot;
using System;
[Tool]
public class MyButton : Button
public partial class MyButton : Button
{
public override void _EnterTree()
{
@@ -240,10 +238,9 @@ dialog. For that, change the ``custom_node.gd`` script to the following:
#if TOOLS
using Godot;
using System;
[Tool]
public class CustomNode : EditorPlugin
public partial class CustomNode : EditorPlugin
{
public override void _EnterTree()
{
@@ -366,10 +363,9 @@ The script could look like this:
#if TOOLS
using Godot;
using System;
[Tool]
public class CustomDock : EditorPlugin
public partial class CustomDock : EditorPlugin
{
Control dock;