/// <summary> /// Login Scene /// </summary> public void LoginSceneFunc() { //Server 연결 if (Input.GetKeyDown(KeyCode.F1)) { if (!NetworkManagerTCP.clientTcp.Connected) { NetworkManagerTCP.TcpConnectToServer(); } } if (Input.GetKeyDown(KeyCode.F2)) { NetworkManagerTCP.SendTCP(new Login(null)); } }
// Use this for initialization void Start() { currentScene = SceneManager.GetActiveScene(); NetworkManagerTCP.TcpConnectToServer(); }