Skip to content

Commit

Permalink
ref
Browse files Browse the repository at this point in the history
  • Loading branch information
quentincaffeino committed Dec 4, 2021
1 parent acd2c38 commit d656948
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,23 +135,23 @@ public override void _Ready()
2. See the example below for how to use once plugin is enabled

Example:

```cs
public override void _Ready()
{
_wrapper = GetTree().Root.GetNode<Console>("CSharpConsole");
_wrapper = GetTree().Root.GetNode<Console>("CSharpConsole");
_wrapper.AddCommand("sayHello", this, nameof(PrintHello))
.SetDescription("prints \"hello %name%!\"")
.AddArgument("name", Variant.Type.String)
.Register();
.Register();
}

public void PrintHello(string name = null) {
GD.Print($"Hello {name}!");
GD.Print($"Hello {name}!");
}

```


## Contributors ✨

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
Expand Down

0 comments on commit d656948

Please sign in to comment.