private void OnEnable() { var rawImage = GetComponent <RawImage>(); var id = Hash.GetHash(PhoneId.GetImei() + holderManager.HolderName + holderManager.TimeStamp); rawImage.texture = QrCodeSystem.CreateQrCode(id + "," + PhoneId.GetImei() + "," + holderManager.HolderName); }
public void CreateTest() { const string context = "Hello World"; var texture = QrCodeSystem.CreateQrCode(context); var reader = new BarcodeReader(); Assert.That(reader.Decode(texture.GetPixels32(), texture.width, texture.height).Text, Is.EqualTo(context)); }
private void Start() { var texture = QrCodeSystem.CreateQrCode("こんにちは、世界"); GetComponent <Renderer>().material.mainTexture = texture; }
private void OnEnable() { var rawImage = GetComponent <RawImage>(); rawImage.texture = QrCodeSystem.CreateQrCode(PhoneId.GetImei() + "," + holderManager.HolderName); }
private void Start() { var rawImage = GetComponent <RawImage>(); rawImage.texture = QrCodeSystem.CreateQrCode(issuerManager.TimeStamp); }