public void ShowProperty(MapEditorFeatureController feature) { selectedFeature = feature; this.gameObject.SetActive(true); inputAngle.text = feature.GetRotation().ToString(); inputRadius.text = feature.GetRadius().ToString(); }
public void RadiusChanged() { Debug.Log("Radius Changed"); try { float radius = float.Parse(inputRadius.text); selectedFeature.SetRadius(radius); selectedFeature.ShowHighlight(); } catch (System.Exception e) { Debug.Log("Fail to set radius " + e.Message); inputRadius.text = selectedFeature.GetRadius().ToString(); } }