void Start()
	{
		if (!e_DeviceController) {
			e_DeviceController = GameObject.FindObjectOfType<DeviceCameraController>();
			if(!e_DeviceController)
			{
				Debug.LogError("the Device Controller is not exsit,Please Drag DeviceCamera from project to Hierarchy");
			}
		}
	}
Example #2
0
 void Start()
 {
     if (!e_DeviceController)
     {
         e_DeviceController = gameObject.GetComponent <DeviceCameraController>();
         if (!e_DeviceController)
         {
             Debug.LogError("the Device Controller is not exsit,Please Drag DeviceCamera from project to Hierarchy");
         }
     }
 }
Example #3
0
 void Start()
 {
     if (!e_DeviceController)
     {
         e_DeviceController = GameObject.FindObjectOfType <DeviceCameraController>();
         if (!e_DeviceController)
         {
             Debug.LogError("the Device Controller is not exsit,Please Drag DeviceCamera from project to Hierarchy");
         }
     }
 }
	void Start()
	{
		barReader = new BarcodeReader ();
		barReader.AutoRotate = true;
		barReader.TryInverted = true;
		
		if (!e_DeviceController) {
			e_DeviceController = GameObject.FindObjectOfType<DeviceCameraController>();
			if(!e_DeviceController)
			{
				Debug.LogError("the Device Controller is not exsit,Please Drag DeviceCamera from project to Hierarchy");
			}
		}
	}
Example #5
0
    void Start()
    {
        if (!e_DeviceController)
        {
            e_DeviceController = GameObject.FindObjectOfType <DeviceCameraController>();
            e_DeviceController.gameObject.transform.Find("CameraPlane").gameObject.SetActive(false);
//            StopWork();
//		    StopCamera();
            if (!e_DeviceController)
            {
                Debug.LogError("the Device Controller is not exsit,Please Drag DeviceCamera from project to Hierarchy");
            }
        }
    }