Beispiel #1
0
 private void Start()
 {
     InitRecog();
     m_vufoCon = GameObject.Find("VuforiaController").GetComponent <VuforiaController>();
     //m_vufoCon.transform.GetChild(0).position = new Vector3(m_vufoCon.LISTTARGET[0].gameObject.transform.position.x * 0.1f - 0.2f + MainSystem.INSTANCE.CAMERA_MAIN.transform.position.x, m_vufoCon.LISTTARGET[0].gameObject.transform.parent.position.y * 0.1f, m_vufoCon.LISTTARGET[0].gameObject.transform.parent.position.z * 0.1f + MainSystem.INSTANCE.CAMERA_MAIN.transform.position.z + 0.3f);
     //m_vufoCon = VuforiaBehaviour.Instance
 }
Beispiel #2
0
 public void ActiveVuforia(bool _isActive)
 {
     if (_isActive && m_vuforiaController == null)
     {
         m_vuforiaController = InstantiateAndAddTo(URL.PrefabURL.PREFABS, "VuforiaController", null).GetComponent <VuforiaController>();
         fSetQRCodeCheckTime(0); //*LKH* - 20190813, QR코드 재인식 문제 수정
         m_vuforiaController.ACT_TRACKED = TrackedVuforiaTarget;
     }
     if (m_vuforiaController != null)
     {
         m_vuforiaController.ActiveRecognize(_isActive);
     }
 }
Beispiel #3
0
    private void Start()
    {
        //startPos = gameObject.transform.position;
        //gameObject.transform.localScale *= 1.1f;

        //btn_NeOSS.transform.GetChild(0).gameObject.SetActive(false);
        //btn_NeOSS.transform.GetChild(1).gameObject.SetActive(true);
        btn_CheckLists.transform.GetChild(0).gameObject.SetActive(false);
        btn_CheckLists.transform.GetChild(1).gameObject.SetActive(true);

        btn_NeOSSpos[0].gameObject.SetActive(false);
        btn_NeOSSpos[1].gameObject.SetActive(false);

        btn_CheckListsPos[0].gameObject.SetActive(false);
        btn_CheckListsPos[1].gameObject.SetActive(false);

        btn_PartsInfoPos[0].gameObject.SetActive(false);
        btn_PartsInfoPos[1].gameObject.SetActive(false);

        btn_ManualPos[0].gameObject.SetActive(false);
        btn_ManualPos[1].gameObject.SetActive(false);

        m_vufoCon = GameObject.Find("VuforiaController").GetComponent <VuforiaController>();

        remote_Warning.SetActive(false);

        //if (gameObject.transform.parent != null)
        //{
        //    gameObject.transform.parent = null;
        //    gameObject.transform.localPosition = (startPos + MainSystem.INSTANCE.CAMERA_MAIN.transform.position) * 0.03f;
        //    //gameObject.transform.localPosition = new Vector3((startPos.x + MainSystem.INSTANCE.CAMERA_MAIN.transform.position.x) * 0.015f, (startPos.y + MainSystem.INSTANCE.CAMERA_MAIN.transform.position.y) * 0.015f, (startPos.z + MainSystem.INSTANCE.CAMERA_MAIN.transform.position.z) * 0.015f);
        //    gameObject.transform.localScale *= 0.11f;
        //}
        //gameObject.transform.position = (startPos - MainSystem.INSTANCE.CAMERA_MAIN.transform.position) * 0.01f;
        //gameObject.transform.position = new Vector3((startPos.x - MainSystem.INSTANCE.CAMERA_MAIN.transform.position.x) * 0.02f, (startPos.y - MainSystem.INSTANCE.CAMERA_MAIN.transform.position.y) * 0.01f, (startPos.z - MainSystem.INSTANCE.CAMERA_MAIN.transform.position.z) * 0.02f);
        //Matching();

        //MainSystem.INSTANCE.mQRCooltime = true; //*LKH* - 20190807, QR code 인식 버튼제어 추가
    }