Example #1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.S))
     {
         var msg = "aaaa";
         _sender.Broadcast(msg);
         Debug.Log("Send: " + msg);
     }
 }
Example #2
0
        public ScanWindow()
        {
            InitializeComponent();

            receiver.UdpMessageReceived += OnUdpMessageReceived;

            UdpSender.Broadcast("ml.festival.defectively.scan", 52000);

            new Task(async() => { await receiver.ReceiveAsync(); }).Start();
        }
Example #3
0
 private void OnSecondaryClick(object sender, RoutedEventArgs e)
 {
     ServersListBox.Items.Clear();
     UdpSender.Broadcast("ml.festival.defectively.scan", 52000);
 }
Example #4
0
 public void OnLeftButtonDown()
 {
     _sphereMtl.color = Color.green;
     _udpSender.Broadcast(Commands.LeftDown);
 }
Example #5
0
 /// <summary>
 /// Starts the network controller.
 /// </summary>
 internal static void Start()
 {
     NetworkController.Start();
     UdpSender.Broadcast();
 }