public void init(LiveLink live, string id, string name, string parent, UnityEngine.Color color)
 {
     label.text = name;
     m_color = color;
     amplitudeJack = new PatchCable(PatchCable.PlugType.JACK);
     base.init(live, id, name, parent);
 }
Exemple #2
0
 public void Disconnect(PatchCable plug)
 {
     if (plugType == PlugType.JACK)
         m_destinationPlugs.Remove(plug);
     else if (plugType == PlugType.PLUG)
         m_incomingJacks.Remove(plug);
 }
Exemple #3
0
 public bool Connect(PatchCable plug)
 {
     if (plugType == PlugType.JACK)
     {
         if(m_destinationPlugs.Add(plug))
             return plug.Connect(this);
     }
     else if (plugType == PlugType.PLUG)
         if(m_incomingJacks.Add(plug))
             return plug.Connect(this);
     return false;
 }
Exemple #4
0
 public void Send(PatchCable jack, float[] values)
 {
     m_incomingJackValues[jack] = values;
     SetDirty();
 }
Exemple #5
0
 public float[] jackValue(PatchCable jack)
 {
     if (values.ContainsKey(jack))
         return values[jack];
     return null;
 }