void OnStartHost(string ip, int port) { //自动加入房间 if (pvpRoom != null) { pvpRoom.JoinRoom(ip, port); } }
private void OnStartServer(object arg) { string ipport = arg as string; string[] tmps = ipport.Split(':'); string ip = tmps[0]; int port = int.Parse(tmps[1]); m_room.JoinRoom(ip, port); }