示例#1
0
        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);
        }
示例#2
0
        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));
        }
示例#3
0
        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);
        }