Example #1
0
 /// <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));
     }
 }
Example #2
0
    // Use this for initialization
    void Start()
    {
        currentScene = SceneManager.GetActiveScene();

        NetworkManagerTCP.TcpConnectToServer();
    }