public void OnSetPhysicalVisualizerAnchor(SpawnData spawnData) { if (!_enoughDataToCreate || IsPaused) { return; } BroadcastMessage("OnSpawnAnchor", spawnData); }
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); }
public virtual void OnSpawnAnchor(SpawnData spawnData) { if (Mode == PVMode.Delete) { return; } Debug.Log("PhysicalVisualizerManagerBase::OnSpawnAnchor"); _anchorManager.IsPaused = true; var sensor = CreateSensorIndicator(spawnData); ShowChooser(sensor); }