Exemple #1
0
    public void Scan(BarcodeCamera.Type type)
    {
        if (barcodeCamera == null)
        {
            barcodeCamera = FindObjectOfType <BarcodeCamera>();
        }

        barcodeCamera.SaveBarcodeCamera(type, (foundBarcode) => {
            Debug.Log("Scanning image for barcode, found: " + foundBarcode);
            if (foundBarcode)
            {
                gameObject.SetActive(false);
                mainCanvas.gameObject.SetActive(true);
            }
        });
    }
Exemple #2
0
 public void SetScanType(BarcodeCamera.Type type)
 {
     this.scanType = type;
 }
Exemple #3
0
 public void Hide()
 {
     mainCanvas.gameObject.SetActive(true);
     gameObject.SetActive(false);
     this.scanType = BarcodeCamera.Type.SubscribeSensor;
 }