public void ConfirmChanges() { var localScale = mesh.transform.localScale; OnConfirmChanges?.Invoke(localScale.x, localScale.z); HideMeshAndModal(); }
private void Awake() { _modal = GetComponent <Modal>(); confirmButton.onClick.AddListener(() => OnConfirmChanges?.Invoke()); changePositionButton.onClick.AddListener(() => OnChangePosition?.Invoke()); xSlider.onValueChanged.AddListener(value => OnXSliderValueChange?.Invoke(value)); zSlider.onValueChanged.AddListener(value => OnZSliderValueChange?.Invoke(value)); }