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); }
public void Disconnect(PatchCable plug) { if (plugType == PlugType.JACK) m_destinationPlugs.Remove(plug); else if (plugType == PlugType.PLUG) m_incomingJacks.Remove(plug); }
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; }
public void Send(PatchCable jack, float[] values) { m_incomingJackValues[jack] = values; SetDirty(); }
public float[] jackValue(PatchCable jack) { if (values.ContainsKey(jack)) return values[jack]; return null; }