예제 #1
0
        public void ShowProperty(MapEditorFeatureController feature)
        {
            selectedFeature = feature;
            this.gameObject.SetActive(true);

            inputAngle.text  = feature.GetRotation().ToString();
            inputRadius.text = feature.GetRadius().ToString();
        }
예제 #2
0
 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();
     }
 }