예제 #1
0
        public void OnSetPhysicalVisualizerAnchor(SpawnData spawnData)
        {
            if (!_enoughDataToCreate || IsPaused)
            {
                return;
            }

            BroadcastMessage("OnSpawnAnchor", spawnData);
        }
예제 #2
0
        protected virtual GameObject CreateSensorIndicator(SpawnData spawnData)
        {
            var sensor = Instantiate(SensorAnchorPrefab, gameObject.transform);

            sensor.transform.position = spawnData.Position;
#if WINDOWS_UWP
            sensor.transform.localRotation = spawnData.Rotation * Quaternion.AngleAxis(90f, Vector3.right);
#else
            sensor.transform.localRotation = Quaternion.AngleAxis(90f, Vector3.right);
#endif
            sensor.SetActive(true);

            return(sensor);
        }
예제 #3
0
        public virtual void OnSpawnAnchor(SpawnData spawnData)
        {
            if (Mode == PVMode.Delete)
            {
                return;
            }

            Debug.Log("PhysicalVisualizerManagerBase::OnSpawnAnchor");

            _anchorManager.IsPaused = true;

            var sensor = CreateSensorIndicator(spawnData);

            ShowChooser(sensor);
        }