void Start() { m_SpatialMappingManager = SpatialMappingManager.Instance; m_SpatialUnderstandingCustomMesh = SpatialUnderstanding.Instance.UnderstandingCustomMesh; m_SpatialMappingDefaultMaterial = m_SpatialMappingManager.SurfaceMaterials; m_SpatialUnderstandingDefaultMaterial = m_SpatialUnderstandingCustomMesh.MeshMaterials; CurrentRenderingState = m_CurrentRenderingState; }
// Use this for initialization void Start() { spatialUnderstanding = spatialUnderstandingObj.GetComponent <SpatialUnderstanding>(); customMesh = spatialUnderstanding.UnderstandingCustomMesh; mappingManager = spatialMappingObj.GetComponent <SpatialMappingManager>(); recognizer = new GestureRecognizer(); recognizer.Tapped += (args) => { OnTapped(); }; recognizer.StartCapturingGestures(); }
/** * Use this for initialization. */ private void Start() { // Variable initialization this.logger = DebugLogger.Instance; // Get reference to other scripts in the scene this.currentMesh = this.gameObject.GetComponent <SpatialUnderstandingCustomMesh>(); // Deactivate this script if necessary components are missing if ((this.logger == null) || (this.currentMesh == null)) { Debug.LogError("CachedRoom: Script references not set properly."); this.enabled = false; } }
// Use this for initialization void Start() { InputManager.Instance.PushFallbackInputHandler(this.gameObject); SpatialUnderstanding.Instance.RequestBeginScanning(); SpatialUnderstanding.Instance.ScanStateChanged += ScanStateChanged; SpatialUnder = GameObject.FindWithTag("Understanding"); customMeshScript = SpatialUnder.GetComponent <SpatialUnderstandingCustomMesh>(); bag = GameObject.FindWithTag("Bag"); progressBar.SetActive(false); gameObject.GetComponent <GamingManager>().enabled = false; for (int i = 0; i < 3; i++) { paintingChildren.Add(transform.GetChild(i).gameObject); } }