public void Initialize() { // TcpNetwork 생성. _tcpNetwork = new TcpNetwork(); _tcpNetwork.ConnectToServer(); // HttpNetwork 생성 _httpNetwork = Instantiate(Resources.Load("Prefabs/HttpNetwork") as GameObject).GetComponent <HttpNetwork>(); }
public void TcpConnect(string serverIp, int serverPort) { // TcpNetwork 생성. TcpHandler = new TcpNetwork(serverIp, serverPort); TcpHandler.ConnectToServer(); }