示例#1
0
 public void OnKnobClick(InputKnob knob)
 {
     if (knob.lineRenderer != null)
     {
         var lc = knob.lineRenderer.GetComponent <LineController>();
         lc.LineIsSelected = true;
     }
 }
示例#2
0
        private static void WriteInputKnob(InputKnob knob, XmlTextWriter wr)
        {
            wr.WriteStartElement("input");

            var rt = knob.transform as RectTransform;

            wr.WriteAttributeString("id", knob.Id.ToString());
            wr.WriteAttributeString("name", knob.Name);
            wr.WriteAttributeString("type", knob.Type.ToString());

            //write connection
            if (knob.JoinedKnob != null)
            {
                wr.WriteAttributeString("join", knob.JoinedKnob.Id.ToString());
            }

            wr.WriteEndElement();
        }