Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
        public void PingServer()
        {
            var command = NetCommand.Create(Vector3.Up, 1, "Ping!");

            this.SendCommand(command, this.NetManager.FirstPeer);
        }