private void ConfirmPlacement() { _placement.Confirm(); _placement.volume = _placementExtents; _placement.tilt = _placementTiltOffset; _placement.allowHorizontal = true; _placement.allowVertical = false; _placement.Place(Camera.main.transform, HandlePlacementConfirmed, IsPlacementValid); }
//----------- MonoBehaviour Methods ----------- private void OnGUI() { if (!placement.Running) { if (GUILayout.Button("Start Placement")) { contentToPlace.gameObject.SetActive(false); placement.Place(Camera.main.transform, HandlePlacementComplete); } } else { if (GUILayout.Button("Confirm Placement")) { placement.Confirm(); } } }