using UnityEngine;
using System.Collections;
using System;
using System.Threading;
using System.Net;
using System.Net.Sockets;
using System.Text;
public class NewBehaviourScript : MonoBehaviour
{
// read Thread
Thread readThread;
// udpclient object
UdpClient client;
//server IP
public string IP = "127.0.0.1";
//server port number
public int port = 8080;
// UDP packet store
public string lastReceivedPacket = "";
using System.Collections;
using System;
using System.Threading;
using System.Net;
using System.Net.Sockets;
using System.Text;
public class NewBehaviourScript : MonoBehaviour
{
// read Thread
Thread readThread;
// udpclient object
UdpClient client;
//server IP
public string IP = "127.0.0.1";
//server port number
public int port = 8080;
// UDP packet store
public string lastReceivedPacket = "";