Skip to content

Commit 1bcb00d

Browse files
authored
Update README.md
1 parent c465fec commit 1bcb00d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ To fetch GDScript nodes, you can use the `GetNodeAsWrapper` extension method pro
4444
4545
public override _Ready()
4646
{
47-
NetworkTimer timer = this.GetNodeAsWrapper<NetworkTimer>("Timer");
48-
NetworkRandomNumberGenerator rng = this.GetNodeAsWrapper<NetworkRandomNumberGenerator>("SomeNode/Rng");
49-
NetworkAnimationPlayer animationPlayer = this.GetNodeAsWrapper<NetworkAnimationPlayer>("AnimationPlayer");
47+
NetworkTimerWrapper timer = this.GetNodeAsWrapper<NetworkTimerWrapper>("Timer");
48+
NetworkRandomNumberGeneratorWrapper rng = this.GetNodeAsWrapper<NetworkRandomNumberGeneratorWrapper>("SomeNode/Rng");
49+
NetworkAnimationPlayerWrapper animationPlayer = this.GetNodeAsWrapper<NetworkAnimationPlayerWrapper>("AnimationPlayer");
5050
}
5151
```
5252

@@ -55,7 +55,7 @@ Signals are forwarded to C# events, but you may also use the `Connect` method di
5555
```CSharp
5656
public override _Ready()
5757
{
58-
NetworkTimer timer = this.GetNodeAsWrapper<NetworkTimer>("Timer");
58+
NetworkTimerWrapper timer = this.GetNodeAsWrapper<NetworkTimerWrapper>("Timer");
5959

6060
// Connect C# events
6161
timer.Timeout += OnTimeout;

0 commit comments

Comments
 (0)