public void Disconnect(PinIn target) { target.source = null; targets.Remove(target); if (!module.core.RemoveWire(index, target.GetSignal())) { Debug.LogError("Failed to remove wire!"); } }
public void Connect(PinIn target) { target.source = this; targets.Add(target); module.core.WireTarget(index, target.GetSignal()); target.line.SetColor(color); module.core.MarkActive(); }