Esempio n. 1
0
    void qrScanFinished(string dataText)
    {
        this.gameObject.GetComponent <webview>().CallJS("openModal", dataText);
        e_qrController.StopWork();
        scanLineObj.SetActive(false);

        qrCam.gameObject.SetActive(false);
        mainCam.gameObject.SetActive(true);
    }
Esempio n. 2
0
 /// <summary>
 /// if you want to go to other scene ,you must call the QRCodeDecodeController.StopWork(),otherwise,the application will crashed on Mobile .
 /// </summary>
 /// <param name="scenename">Scenename.</param>
 public void GotoNextScene(string scenename)
 {
     if (e_qrController != null)
     {
         e_qrController.StopWork();
     }
     Application.LoadLevel(scenename);
 }
Esempio n. 3
0
 private void OnDisable()
 {
     QrCodeDecodeController.StopWork();
 }