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); } }); }
public void SetScanType(BarcodeCamera.Type type) { this.scanType = type; }
public void Hide() { mainCanvas.gameObject.SetActive(true); gameObject.SetActive(false); this.scanType = BarcodeCamera.Type.SubscribeSensor; }