public void Start()
        {
            var message = new Message.Message();

            if (!_udpManuallySet)
            {
                // not set, decide based on the data
                if (DataMap == null)
                {
                    SetIsUdp(true);
                }
                else
                {
                    SetIsUdp(false);
                    message.SetDataMap(new DataMap(DataMap));
                }
            }

            message.SetKey(MessageKey);
            message.SetIntValue(0);
            message.SetIsUdp(IsUdp);

            _peer.BroadcastRpc.BroadcastHandler.Receive(message);
        }
Beispiel #2
0
        public void Start()
        {
            var message = new Message.Message();

            if (!_udpManuallySet)
            {
                // not set, decide based on the data
                if (DataMap == null)
                {
                    SetIsUdp(true);
                }
                else
                {
                    SetIsUdp(false);
                    message.SetDataMap(new DataMap(DataMap));
                }
            }

            message.SetKey(MessageKey);
            message.SetIntValue(0);
            message.SetIsUdp(IsUdp);

            _peer.BroadcastRpc.BroadcastHandler.Receive(message);
        }