Skip to content

Commit fe3577f

Browse files
committed
docs: Updated ConnectionApproval example to use a event delegate
1 parent 16dd12c commit fe3577f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/_docs/getting-started/connection-approval.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ However, when ConnectionApproval is true you are also required to provide a call
99
```csharp
1010
private void Setup()
1111
{
12-
NetworkingManager.Singleton.ConnectionApprovalCallback = ApprovalCheck;
12+
NetworkingManager.Singleton.ConnectionApprovalCallback += ApprovalCheck;
1313
NetworkingManager.Singleton.StartHost();
1414
}
1515

0 commit comments

Comments
 (0)