public void PingClients() { for (var i = 0; i < this.NetManager.ConnectedPeerList.Count; i++) { var peer = this.NetManager.ConnectedPeerList[i]; var command = NetCommand.Create(Vector3.One, 1, "Ping!"); this.SendCommand(command, peer); } }
public void PingServer() { var command = NetCommand.Create(Vector3.Up, 1, "Ping!"); this.SendCommand(command, this.NetManager.FirstPeer); }