Ejemplo n.º 1
0
 public void LoginAction(string username, string password)
 {
     try
     {
         var encrypted = Encryptor.EncryptString(Encryptor.DecryptKey, password);
         var writer    = new NetDataWriter();
         writer.Put((byte)1);
         writer.Put(username);
         writer.Put(encrypted);
         _connectionProvider.Connect(writer);
     }
     catch (Exception ex)
     {
         Debug.Log(ex.ToString());
     }
 }