Exemplo n.º 1
0
 /// <summary>
 /// When the input value changes, generate a new QR Code, so the user can interactively edit the name and the pairing process uses that name.
 /// </summary>
 /// <param name="input">Input.</param>
 public void InputValueChanged(string input)
 {
     Allow2.GetQR(this, input, delegate(string err, Texture2D qrCode)
     {
         Debug.Log("Input Value qrcode error: " + (err ?? "No Error") + " : " + (qrCode != null ? qrCode.width.ToString() + "," + qrCode.height.ToString() : "no"));
         qrImage.GetComponent <RawImage>().texture = qrCode;
     });
 }