private void StartSpatialMapping() { SpatialMappingManager.Instance.DrawVisualMeshes = true; SpatialMappingManager.Instance.StartObserver(); PulseManager.Instance.StartPulse(GazeManager.Instance.HitPosition); m_UIParent.GetComponent <BoxCollider>().enabled = true; m_UIParentBackPanel.GetComponent <MeshRenderer>().enabled = true; m_assistant.SetActive(true); TapToPlace tapToPlace = m_UIParent.GetComponent <TapToPlace>(); tapToPlace.IsBeingPlaced = true; tapToPlace.OnPlacementChanged += TapToPlace_OnPlacementChanged; }
void Start() { Instance = this; }