Esempio n. 1
0
    void Awake()
    {
        _arRaycastManager     = GetComponent <ARRaycastManager>();
        _arAnchorManager      = GetComponent <ARAnchorManager>();
        _arCloudAnchorManager = GetComponent <ARCloudAnchorManager>();
        _arDebugManager       = GetComponent <ARDebugManager>();

        for (int i = 0; i < _arCloudAnchorManager.NUM_OF_ANCHOR; i++)
        {
            placedGameObjectList.Add(new GameObject());
        }
    }
Esempio n. 2
0
    void Awake()
    {
        _arRaycastManager     = GetComponent <ARRaycastManager>();
        _arAnchorManager      = GetComponent <ARAnchorManager>();
        _arPlaneManger        = GetComponent <ARPlaneManager>();
        _arCloudAnchorManager = GetComponent <ARCloudAnchorManager>();
        _arDebugManager       = GetComponent <ARDebugManager>();

        for (int i = 0; i < _arCloudAnchorManager.NUM_OF_ANCHOR; i++)
        {
            placedGameObjectList.Add(new GameObject());
        }

        halfHeight = Screen.height * 0.5f;
        halfWidth  = Screen.width * 0.5f;
        placementIndicator.SetActive(false);
    }