コード例 #1
0
        private void OnMapChange(object sender, MapChangeEvent @event)
        {
            var packet = new MapChangePacket {
                MapName = @event.MapName
            };

            foreach (var peer in m_ConnectionHandler.GetPeers())
            {
                m_ConnectionHandler.Send(peer, packet);
            }
        }
コード例 #2
0
 public void InvokeRpc(string name, PacketFlags flags, params object[] args)
 {
     InvokeRpc(name, m_ConnectionHandler.GetPeers(true), flags, args);
 }