Example #1
0
		void Awake()
		{
			sdk = ImmersalARCloudSDK.Instance;
            m_cameraShutterClick = GetComponent<AudioSource>();
			m_workspaceManager = GetComponentInChildren<WorkspaceManager>();
            m_visualizeManager = GetComponentInChildren<VisualizeManager>();
            m_visualizeManager.OnItemSelected += OnItemSelected;
            m_visualizeManager.OnSelectorOpened += OnSelectorOpened;
            m_visualizeManager.OnSelectorClosed += OnSelectorClosed;
            ImageRunUpdate();
		}
Example #2
0
        private void Start()
        {
            if (m_WorkspaceManager == null)
            {
                m_WorkspaceManager = GetComponentInChildren <WorkspaceManager>();
            }
            if (m_VisualizeManager == null)
            {
                m_VisualizeManager = GetComponentInChildren <VisualizeManager>();
            }

            ChangeState(uiState);
        }
        void Awake()
        {
            m_cameraShutterClick = GetComponent <AudioSource>();
            m_workspaceManager   = GetComponentInChildren <WorkspaceManager>();
            m_visualizeManager   = GetComponentInChildren <VisualizeManager>();
            m_visualizeManager.OnItemSelected   += OnItemSelected;
            m_visualizeManager.OnSelectorOpened += OnSelectorOpened;
            m_visualizeManager.OnSelectorClosed += OnSelectorClosed;
            m_Session       = UnityEngine.Object.FindObjectOfType <ARSession>();
            m_CameraManager = Camera.main.GetComponent <ARCameraManager>();
#if !UNITY_EDITOR
            ARSession.stateChanged += SessionStateChanged;
//			ARSubsystemManager.sessionSubsystem.TrackingStateChanged += SessionSubsystem_TrackingStateChanged;
#endif
            ImageRunUpdate();
        }