void Start() { // UnityEvent を 初期化 if (uDPReceivedEvent == null) { uDPReceivedEvent = new UDPReceivedEvent(); } if (cmds == null) { cmds = new Dictionary <string, Cmd>(); } Debug.Log("Start PORT:" + LOCA_LPORT); udp = new UdpClient(LOCA_LPORT); thread = new Thread(new ThreadStart(threadMethod)); thread.IsBackground = true; thread.Start(); }