コード例 #1
0
ファイル: PinOut.cs プロジェクト: Aceba1/Logic-Gates
    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
ファイル: PinOut.cs プロジェクト: Aceba1/Logic-Gates
    public void Connect(PinIn target)
    {
        target.source = this;
        targets.Add(target);

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

        module.core.MarkActive();
    }