Пример #1
0
    public void Disconnect(PinIn target)
    {
        target.source = null;
        targets.Remove(target);

        if (!module.core.RemoveWire(index, target.GetSignal()))
        {
            Debug.LogError("Failed to remove wire!");
        }
    }
Пример #2
0
    public void Connect(PinIn target)
    {
        target.source = this;
        targets.Add(target);

        module.core.WireTarget(index, target.GetSignal());
        target.line.SetColor(color);

        module.core.MarkActive();
    }