Skip to content
This repository has been archived by the owner on Aug 15, 2022. It is now read-only.

Commit

Permalink
Update send-binary-frame.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mcguinnessdr committed Aug 14, 2018
1 parent 36ff7b9 commit 760fd92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/mkdocs/docs/BasicNetworkSamples/send-binary-frame.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Next you need to create the frame, since you want to send it to a specific playe
```csharp
const MY_GROUP_ID = MessageGroupIds .START_OF_GENERIC_IDS + 1; // Just a random message group id that is not being used anywhere else
//
ulong timestep = NetworkManager.Instance.Time.Timestep;
ulong timestep = NetworkManager.Instance.Networker.Time.Timestep;
bool isTcpClient = NetworkManager.Instance.Networker is TCPClient;
bool isTcp = NetworkManager.Instance.Networker is BaseTCP;
Binary bin = new Binary(timestep, isTcpClient, data, Receivers.Target, MY_GROUP_ID, isTcp);
Expand All @@ -33,11 +33,11 @@ NetworkManager.Instance.Networker.binaryMessageReceived += ReadBinary;

// ...
private void ReadBinary(NetworkingPlayer player, Binary frame)
private void ReadBinary(NetworkingPlayer player, Binary frame, NetWorker sender)
{
if (frame.GroupId != MY_GROUP_ID)
return;

// TODO: Your code here
}
```
```

0 comments on commit 760fd92

Please sign in to comment.